ExtensionMethods.SetAnnotationValue Method

Definition

Overloads

SetAnnotationValue(IEdmModel, IEdmElement, String, String, Object)

Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing annotation with the same name is removed.

SetAnnotationValue<T>(IEdmModel, IEdmElement, T)

Sets an annotation value on an annotatable element.

SetAnnotationValue(IEdmModel, IEdmElement, String, String, Object)

Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing annotation with the same name is removed.

public static void SetAnnotationValue (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmElement element, string namespaceName, string localName, object value);
static member SetAnnotationValue : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmElement * string * string * obj -> unit
<Extension()>
Public Sub SetAnnotationValue (model As IEdmModel, element As IEdmElement, namespaceName As String, localName As String, value As Object)

Parameters

model
IEdmModel

The model containing the annotation.

element
IEdmElement

The annotated element.

namespaceName
String

Namespace that the annotation belongs to.

localName
String

Name of the annotation within the namespace.

value
Object

Value of the new annotation.

Applies to

SetAnnotationValue<T>(IEdmModel, IEdmElement, T)

Sets an annotation value on an annotatable element.

public static void SetAnnotationValue<T> (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmElement element, T value) where T : class;
static member SetAnnotationValue : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmElement * 'T -> unit (requires 'T : null)
<Extension()>
Public Sub SetAnnotationValue(Of T As Class) (model As IEdmModel, element As IEdmElement, value As T)

Type Parameters

T

Type of the annotation being set.

Parameters

model
IEdmModel

The model containing the annotation.

element
IEdmElement

The annotated element.

value
T

Value of the new annotation.

Applies to