Store.GetService Method

Gets a service.

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

Syntax

'宣言
Public Function GetService ( _
    serviceType As Type _
) As Object
'使用
Dim instance As Store
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

    The service type to get.

Return Value

Type: System.Object

An object that represents the ServiceType.

Implements

IServiceProvider.GetService(Type)

Permissions

See Also

Reference

Store Class

Store Members

Microsoft.VisualStudio.Modeling Namespace