ProjectPackage.TryGetService<T> 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 TryGetService(Of T) ( _
serviceType As Type _
) As T
public T TryGetService<T>(
Type serviceType
)
public:
generic<typename T>
T TryGetService(
Type^ serviceType
)
member TryGetService :
serviceType:Type -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- serviceType
Type: System.Type
Type of service.
Return Value
Type: T
Service object, or null if service not found.
.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