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

Return Value

Type: T
Service object, or null if service not found.

.NET Framework Security

See Also

Reference

ProjectPackage Class

TryGetService Overload

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