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
- serviceType
Type: System.Type
Return Value
Type: T
.NET Framework Security
- 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.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace