Share via


IEdmDirectValueAnnotationsManager.GetAnnotationValue Method

Definition

Retrieves an annotation value for an EDM element. Returns null if no annotation with the given name exists for the given element.

public object GetAnnotationValue (Microsoft.OData.Edm.IEdmElement element, string namespaceName, string localName);
abstract member GetAnnotationValue : Microsoft.OData.Edm.IEdmElement * string * string -> obj
Public Function GetAnnotationValue (element As IEdmElement, namespaceName As String, localName As String) As Object

Parameters

element
IEdmElement

The annotated element.

namespaceName
String

Namespace that the annotation belongs to.

localName
String

Local name of the annotation.

Returns

Returns the annotation value that corresponds to the provided name. Returns null if no annotation with the given name exists for the given element.

Applies to