Share via


IEdmDirectValueAnnotationsManager.SetAnnotationValue Method

Definition

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 void SetAnnotationValue (Microsoft.OData.Edm.IEdmElement element, string namespaceName, string localName, object value);
abstract member SetAnnotationValue : Microsoft.OData.Edm.IEdmElement * string * string * obj -> unit
Public Sub SetAnnotationValue (element As IEdmElement, namespaceName As String, localName As String, value As Object)

Parameters

element
IEdmElement

The annotated element.

namespaceName
String

Namespace that the annotation belongs to.

localName
String

Name of the annotation within the namespace.

value
Object

The value of the annotation.

Applies to