Share via


Package.GetGlobalService(Type) Method

Definition

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.

public:
 static System::Object ^ GetGlobalService(Type ^ serviceType);
public:
 static Platform::Object ^ GetGlobalService(Platform::Type ^ serviceType);
public static object GetGlobalService (Type serviceType);
static member GetGlobalService : Type -> obj
Public Shared Function GetGlobalService (serviceType As Type) As Object

Parameters

serviceType
Type

Type corresponding to the Service being requested

Returns

The service being requested if available, otherwise null

Applies to