Compartilhar via


Package.IServiceProvider.QueryService(Guid, Guid, IntPtr) Method

Definition

Internal IServiceProvider implementation.

 virtual int Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid % sid, Guid % iid, [Runtime::InteropServices::Out] IntPtr % ppvObj) = Microsoft::VisualStudio::OLE::Interop::IServiceProvider::QueryService;
int IServiceProvider.QueryService (ref Guid sid, ref Guid iid, out IntPtr ppvObj);
abstract member Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService : Guid * Guid * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService : Guid * Guid * nativeint -> int
Function QueryService (ByRef sid As Guid, ByRef iid As Guid, ByRef ppvObj As IntPtr) As Integer Implements IServiceProvider.QueryService

Parameters

sid
Guid

GUID of the service.

iid
Guid

GUID of the requested interface

ppvObj
IntPtr

nativeint

Pointer to the object requested.

Returns

If the method succeeds, it returns S_OK, otherwise it returns an error code.

Implements

Applies to