ServiceProvider::QueryService Method (Guid, 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(
	Guid guid,
	[OutAttribute] Object^% service
)

Parameters

guid
Type: System::Guid

The type of service to retrieve. The GUID of this type is used to obtain the service from the native service provider.

service
Type: System::Object^

[out] The requested service, or a null if the service could not be located.

Return Value

Type: System::Int32

The HRESULT.

Return to top
Show: