Share via


ProjectPackage.GetGlobalService<T> Method

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

Syntax

'Declaration
Public Shared Function GetGlobalService(Of T) ( _
    serviceType As Type _
) As T
'Usage
Dim serviceType As Type
Dim returnValue As T

returnValue = ProjectPackage.GetGlobalService(serviceType)
public static T GetGlobalService<T>(
    Type serviceType
)
public:
generic<typename T>
static T GetGlobalService(
    Type^ serviceType
)
JScript does not support generic types or methods.
static member GetGlobalService : 
        serviceType:Type -> 'T 

Type Parameters

  • T

Parameters

Return Value

Type: T

.NET Framework Security

See Also

Reference

ProjectPackage Class

ProjectPackage Members

Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace