ServiceProviderHierarchy::GetService Method (Type^)

 

Gets a service of the specified type.

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

public:
virtual Object^ GetService(
	Type^ serviceType
) sealed

Parameters

serviceType
Type: System::Type^

The type of the service.

Return Value

Type: System::Object^

The requested service, or null if the service cannot be found. This service must be cast to the required service type.

This method walks the hierarchy of services to find the requested service.

Return to top
Show: