Share via


Store.GetService Method

Gets a service.

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

Syntax

'Declaration
Public Function GetService ( _
    serviceType As Type _
) As Object
public Object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
) sealed
abstract GetService : 
        serviceType:Type -> Object 
override GetService : 
        serviceType:Type -> Object 
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)

.NET Framework Security

See Also

Reference

Store Class

Microsoft.VisualStudio.Modeling Namespace