ServiceProvider.QueryService Method (Type, Object)

 

Gets type-based services from the unmanaged service provider, with an option to prevent the error being sent to the shell.

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

public int QueryService(
	Type serviceType,
	out object service
)

Parameters

serviceType
Type: System.Type

The type of service to retrieve.

service
Type: System.Object

The requested service, or null.

Return Value

Type: System.Int32

The HRESULT.

Return to top
Show: