Compartir a través de


IServiceProvider.QueryService Method

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaración
Function QueryService ( _
    ByRef guidService As Guid, _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppvObject As IntPtr _
) As Integer
'Uso
Dim instance As IServiceProvider
Dim guidService As Guid
Dim riid As Guid
Dim ppvObject As IntPtr
Dim returnValue As Integer

returnValue = instance.QueryService(guidService, _
    riid, ppvObject)
int QueryService(
    ref Guid guidService,
    ref Guid riid,
    out IntPtr ppvObject
)
int QueryService(
    [InAttribute] Guid% guidService, 
    [InAttribute] Guid% riid, 
    [OutAttribute] IntPtr% ppvObject
)
abstract QueryService : 
        guidService:Guid byref * 
        riid:Guid byref * 
        ppvObject:IntPtr byref -> int 
function QueryService(
    guidService : Guid, 
    riid : Guid, 
    ppvObject : IntPtr
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

IServiceProvider Interface

IServiceProvider Members

Microsoft.VisualStudio.OLE.Interop Namespace