VSDiagramViewSite.GetService Method

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Public Function GetService ( _
    serviceType As Type _
) As Object
'使用
Dim instance As VSDiagramViewSite
Dim serviceType As Type
Dim returnValue As Object

returnValue = instance.GetService(serviceType)
public Object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
) sealed
public final function GetService(
    serviceType : Type
) : Object

Parameters

Return Value

Type: System.Object

Implements

IServiceProvider.GetService(Type)

Permissions

See Also

Reference

VSDiagramViewSite Class

VSDiagramViewSite Members

Microsoft.VisualStudio.Modeling.Shell Namespace