Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
Package Class
Package Methods
 GetGlobalService Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio SDK
Package..::.GetGlobalService Method

Updated: November 2007

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.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Visual Basic (Declaration)
Public Shared Function GetGlobalService ( _
    serviceType As Type _
) As Object
Visual Basic (Usage)
Dim serviceType As Type
Dim returnValue As Object

returnValue = Package.GetGlobalService(serviceType)
C#
public static Object GetGlobalService(
    Type serviceType
)
Visual C++
public:
static Object^ GetGlobalService(
    Type^ serviceType
)
JScript
public static function GetGlobalService(
    serviceType : Type
) : Object

Parameters

serviceType
Type: System..::.Type

The type of the service requested.

Return Value

Type: System..::.Object

The service being requested if available, otherwise null.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker