次の方法で共有


DesignerWindowPane.GetService Method

Gets the service of the specified type.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Protected Overrides Function GetService ( _
    serviceType As Type _
) As Object
protected override Object GetService(
    Type serviceType
)

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

See Also

Reference

DesignerWindowPane Class

Microsoft.VisualStudio.Shell.Design Namespace

IServiceProvider