ServiceProvider.QueryService Method (Guid, Object%)
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Function QueryService ( _
guid As Guid, _
<OutAttribute> ByRef service As Object _
) As Integer
public int QueryService(
Guid guid,
out Object service
)
public:
int QueryService(
Guid guid,
[OutAttribute] Object^% service
)
member QueryService :
guid:Guid *
service:Object byref -> int
public function QueryService(
guid : Guid,
service : Object
) : int
Parameters
- guid
Type: System.Guid
- service
Type: System.Object%
Return Value
Type: System.Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.