Share via


ODataAnnotatable.SetAnnotation<T> Method (T)

 

Sets an annotation of type T.

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

Syntax

public void SetAnnotation<T>(
    T annotation
)
where T : class
public:
generic<typename T>
where T : ref class
void SetAnnotation(
    T annotation
)
member SetAnnotation<'T when 'T : not struct> : 
        annotation:'T -> unit
Public Sub SetAnnotation(Of T As Class) (
    annotation As T
)

Parameters

  • annotation
    Type: T

    The annotation to set.

Type Parameters

  • T
    The type of the annotation.

See Also

ODataAnnotatable Class
Microsoft.OData.Core Namespace

Return to top