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
- serviceType
Type: System.Type
Type of service.
Return Value
Type: TServiceType
Service object.
.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.Package.Project.Internal Namespace