Package.GetGlobalService(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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