AsyncPackage::GetService Method (Type^)

Visual Studio 2015
 

Retrieves a service registered with this package. This method is synchronous and even async services retrieved this way will be retrieved synchronously.

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

protected:
virtual Object^ GetService(
	Type^ serviceType
) override

Parameters

serviceType
Type: System::Type^

The type representing the registered service type to retrieve.

Return Value

Type: System::Object^

The service object, or null on failure.

Return to top
Show: