Compartir a través de


ProjectPackage.TryGetService<TServiceObject, TServiceType> (Método)

Esta clase y sus miembros están reservados para uso interno y no están pensados para su uso en el código.

Espacio de nombres:  Microsoft.VisualStudio.Data.Schema.Package.Project.Internal
Ensamblado:  Microsoft.VisualStudio.Data.Schema.Package (en Microsoft.VisualStudio.Data.Schema.Package.dll)

Sintaxis

'Declaración
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 no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • TServiceObject
  • TServiceType

Valor devuelto

Tipo: TServiceType
Objeto de servicio, o null si no se encontró el servicio.

Seguridad de .NET Framework

Vea también

Referencia

ProjectPackage Clase

TryGetService (Sobrecarga)

Microsoft.VisualStudio.Data.Schema.Package.Project.Internal (Espacio de nombres)