ServiceProvider.IServiceProvider.QueryService Method
Performs as a factory for services that are exposed through an implementation of IServiceProvider.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
Private Function QueryService ( _
ByRef guidService As Guid, _
ByRef riid As Guid, _
<OutAttribute> ByRef ppvObject As IntPtr _
) As Integer Implements IServiceProvider.QueryService
int IServiceProvider.QueryService(
ref Guid guidService,
ref Guid riid,
out IntPtr ppvObject
)
private:
virtual int QueryService(
Guid% guidService,
Guid% riid,
[OutAttribute] IntPtr% ppvObject
) sealed = IServiceProvider::QueryService
private abstract QueryService :
guidService:Guid byref *
riid:Guid byref *
ppvObject:IntPtr byref -> int
private override QueryService :
guidService:Guid byref *
riid:Guid byref *
ppvObject:IntPtr byref -> int
JScript does not support explicit interface implementations.
Parameters
- guidService
Type: System.Guid%
A unique identifier of the requested service.
- riid
Type: System.Guid%
A unique identifier of the interface which the caller wishes to receive for the service.
- ppvObject
Type: System.IntPtr%
Address of the interface specified by the riid parameter.
Return Value
Type: System.Int32
Returns an integer specifying the address of interface for the requested service.
Implements
IServiceProvider.QueryService(Guid%, Guid%, IntPtr%)
.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.