Compartir a través de


ODataAnnotatable.GetAnnotation<T> Método

Obtiene o establece la anotación por tipo.

Espacio de nombres:  Microsoft.Data.OData
Ensamblado:  Microsoft.Data.OData (en Microsoft.Data.OData.dll)

Sintaxis

'Declaración
Public Function GetAnnotation(Of T As Class) As T
'Uso
Dim instance As ODataAnnotatable
Dim returnValue As T

returnValue = instance.GetAnnotation()
public T GetAnnotation<T>()
where T : class
public:
generic<typename T>
where T : ref class
T GetAnnotation()
member GetAnnotation : unit -> 'T  when 'T : not struct
JScript no admite tipos y métodos genéricos.

Parámetros de tipo

  • T
    El tipo de la anotación.

Valor devuelto

Tipo: T
La anotación de tipo T o NULL si no está presente.

Vea también

Referencia

ODataAnnotatable Clase

Espacio de nombres Microsoft.Data.OData