ProjectPackage.GetService<TServiceType> Method (Type)

This class and its members are reserved for internal use and are not intended to be used in your code.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project.Internal
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Public Function GetService(Of TServiceType) ( _
    serviceType As Type _
) As TServiceType
public TServiceType GetService<TServiceType>(
    Type serviceType
)
public:
generic<typename TServiceType>
TServiceType GetService(
    Type^ serviceType
)
member GetService : 
        serviceType:Type -> 'TServiceType 
JScript does not support generic types or methods.

Type Parameters

  • TServiceType

Parameters

Return Value

Type: TServiceType
Service object.

.NET Framework Security

See Also

Reference

ProjectPackage Class

GetService Overload

Microsoft.VisualStudio.Data.Schema.Package.Project.Internal Namespace