Condividi tramite


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

Definition

Performs as a factory for services that are exposed through an implementation of IServiceProvider.

 virtual int Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid % guidService, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppvObject) = Microsoft::VisualStudio::OLE::Interop::IServiceProvider::QueryService;
int IServiceProvider.QueryService (ref Guid guidService, ref Guid riid, out IntPtr ppvObject);
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 guidService As Guid, ByRef riid As Guid, ByRef ppvObject As IntPtr) As Integer Implements IServiceProvider.QueryService

Parameters

guidService
Guid

A unique identifier of the requested service.

riid
Guid

A unique identifier of the interface which the caller wishes to receive for the service.

ppvObject
IntPtr

nativeint

Address of the interface specified by the riid parameter.

Returns

Returns an integer specifying the address of interface for the requested service.

Implements

Applies to