ODataAnnotatable.GetAnnotation<T> Method

Gets or sets the annotation by type.

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

Syntax

'Declaration
Public Function GetAnnotation(Of T As Class) As T
'Usage
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 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

Reference

ODataAnnotatable Class

Microsoft.Data.OData Namespace