Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function GetGlobalService ( _
serviceType As Type _
) As Object
public static Object GetGlobalService(
Type serviceType
)
public:
static Object^ GetGlobalService(
Type^ serviceType
)
static member GetGlobalService :
serviceType:Type -> Object
public static function GetGlobalService(
serviceType : Type
) : Object
Parameters
serviceType
Type: TypeThe type of the service requested.
Return Value
Type: Object
The service being requested if available, otherwise null.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.