ProjectPackage.TryGetService<TServiceObject, TServiceType> Method

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 TServiceObject, TServiceType) As TServiceType
public TServiceType TryGetService<TServiceObject, TServiceType>()
public:
generic<typename TServiceObject, typename TServiceType>
TServiceType TryGetService()
member TryGetService : unit -> 'TServiceType 
JScript does not support generic types or methods.

Type Parameters

  • TServiceObject
  • TServiceType

Return Value

Type: TServiceType
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