ODataAnnotatable.GetAnnotation<T> Method

Gets or sets the annotation by type.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)


Public Function GetAnnotation(Of T As Class) As T
Dim instance As ODataAnnotatable 
Dim returnValue As T

returnValue = instance.GetAnnotation()
public T GetAnnotation<T>()
where T : class
generic<typename T>
where T : ref class
T GetAnnotation()
member GetAnnotation : unit -> 'T  when 'T : not struct
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the annotation.

Return Value

Type: T
The annotation of type T or null if not present.

See Also


ODataAnnotatable Class

Microsoft.Data.OData Namespace