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 the service of the specified type.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Protected Overrides Function GetService ( _
serviceType As Type _
) As Object
'Usage
Dim serviceType As Type
Dim returnValue As Object
returnValue = Me.GetService(serviceType)
protected override Object GetService(
Type serviceType
)
protected:
virtual Object^ GetService(
Type^ serviceType
) override
abstract GetService :
serviceType:Type -> Object
override GetService :
serviceType:Type -> Object
protected override function GetService(
serviceType : Type
) : Object
Parameters
- serviceType
Type: System.Type
A Type that specifies the type of service object to get.
Return Value
Type: System.Object
A service object of type serviceType.
-or-
nulla null reference (Nothing in Visual Basic) if there is no service object of type serviceType.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | serviceType is nulla null reference (Nothing in Visual Basic). |
.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.