ServiceProvider.IServiceProvider.QueryService(Guid, Guid, IntPtr) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
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
- 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.
An integer specifying the address of the interface for the requested service.
Product | Versions |
---|---|
Visual Studio SDK | 2017, 2019, 2022 |