Share via


ODataAnnotatable.SetAnnotation<T> Method

Sets an annotation of type T.

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

Syntax

'Declaration
Public Sub SetAnnotation(Of T As Class) ( _
    annotation As T _
)
'Usage
Dim instance As ODataAnnotatable 
Dim annotation As T

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

Type Parameters

  • T
    The type of the annotation.

Parameters

  • annotation
    Type: T
    The annotation to set.

See Also

Reference

ODataAnnotatable Class

Microsoft.Data.OData Namespace