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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.Data.Schema.Package.Project.Internal (Espacio de nombres)