Partager via


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 that the caller wants to receive for the service.

ppvObject
IntPtr

nativeint

The address of the interface specified by the riid parameter.

Returns

An integer specifying the address of the interface for the requested service.

Implements

Applies to