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.

C++/CX
public:
 static Platform::Object ^ GetGlobalService(Platform::Type ^ serviceType);

Parameters

serviceType
Type

Type corresponding to the Service being requested

Returns

The service being requested if available, otherwise null

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022