Package.IServiceProvider.QueryService Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Internal IServiceProvider implementation.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Private Function QueryService ( _
    ByRef sid As Guid, _
    ByRef iid As Guid, _
    <OutAttribute> ByRef ppvObj As IntPtr _
) As Integer Implements IServiceProvider.QueryService
‘사용 방법
Dim instance As Package
Dim sid As Guid
Dim iid As Guid
Dim ppvObj As IntPtr
Dim returnValue As Integer

returnValue = CType(instance, IServiceProvider).QueryService(sid, _
    iid, ppvObj)
int IServiceProvider.QueryService(
    ref Guid sid,
    ref Guid iid,
    out IntPtr ppvObj
)
private:
virtual int QueryService(
    Guid% sid, 
    Guid% iid, 
    [OutAttribute] IntPtr% ppvObj
) sealed = IServiceProvider::QueryService
private abstract QueryService : 
        sid:Guid byref * 
        iid:Guid byref * 
        ppvObj:IntPtr byref -> int 
private override QueryService : 
        sid:Guid byref * 
        iid:Guid byref * 
        ppvObj:IntPtr byref -> int 
JScript does not support explicit interface implementations.

Parameters

  • iid
    Type: System.Guid%
    GUID of the requested interface

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK, otherwise it returns an error code.

Implements

IServiceProvider.QueryService(Guid%, Guid%, IntPtr%)

.NET Framework Security

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace