Package.GetGlobalService Method (Type)


Gets a service proffered globally by Visual Studio or one of its packages. This is the same as calling GetService() on an instance of a package that proffers no services itself.

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

public static object GetGlobalService(
	Type serviceType


Type: System.Type

The type of the service requested.

Return Value

Type: System.Object

The service being requested if available, otherwise null.

Return to top