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
- serviceType
Type: System.Type
Return Value
Type: System.Object
Implements
IServiceProvider.GetService(Type)
Permissions
- 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.