FlavoredProject::IServiceProvider::GetService Method (Type^)

 

Gets the service of the specified type.

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

private:
virtual Object^ GetService(
	Type^ serviceType
) sealed = IServiceProvider::GetService

Parameters

serviceType
Type: System::Type^

The type of the service.

Return Value

Type: System::Object^

A service of the type specified.

This method returns IOleCommandTarget or IMenuCommandService, or else it delegates the search to the IServiceProvider.

Return to top
Show: