Export (0) Print
Expand All
Expand Minimize

Package.GetGlobalService Method

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.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in microsoft.visualstudio.shell.dll)

public static Object GetGlobalService (
	Type serviceType
)
public static Object GetGlobalService (
	Type serviceType
)
public static function GetGlobalService (
	serviceType : Type
) : Object

Parameters

serviceType

The type of the service requested.

Return Value

The service being requested if available, otherwise null.

Community Additions

ADD
Show:
© 2014 Microsoft