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

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Internal IServiceProvider implementation.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

int IServiceProvider.QueryService(
	ref Guid sid,
	ref Guid iid,
	out IntPtr ppvObj
)

Parameters

sid
Type: System.Guid

GUID of the service.

iid
Type: System.Guid

GUID of the requested interface

ppvObj
Type: System.IntPtr

Pointer to the object requested.

Return Value

Type: System.Int32

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

Return to top
Show: