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

Definition

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

C++
 virtual int Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid % guidService, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppvObject) = Microsoft::VisualStudio::OLE::Interop::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

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

Product Versions
Visual Studio SDK 2017, 2019, 2022