Dela via


EdmDirectValueAnnotationsManager.GetAnnotationValue Method

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

Namespace:  Microsoft.Data.Edm.Library.Annotations
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
Public Function GetAnnotationValue ( _
    element As IEdmElement, _
    namespaceName As String, _
    localName As String _
) As Object
'Usage
Dim instance As EdmDirectValueAnnotationsManager 
Dim element As IEdmElement 
Dim namespaceName As String 
Dim localName As String 
Dim returnValue As Object 

returnValue = instance.GetAnnotationValue(element, _
    namespaceName, localName)
public Object GetAnnotationValue(
    IEdmElement element,
    string namespaceName,
    string localName
)
public:
virtual Object^ GetAnnotationValue(
    IEdmElement^ element, 
    String^ namespaceName, 
    String^ localName
) sealed
abstract GetAnnotationValue : 
        element:IEdmElement * 
        namespaceName:string * 
        localName:string -> Object  
override GetAnnotationValue : 
        element:IEdmElement * 
        namespaceName:string * 
        localName:string -> Object
public final function GetAnnotationValue(
    element : IEdmElement, 
    namespaceName : String, 
    localName : String
) : Object

Parameters

  • namespaceName
    Type: System.String
    Namespace that the annotation belongs to.

Return Value

Type: System.Object
Returns the annotation that corresponds to the provided name. Returns null if no annotation with the given name exists for the given element.

Implements

IEdmDirectValueAnnotationsManager.GetAnnotationValue(IEdmElement, String, String)

See Also

Reference

EdmDirectValueAnnotationsManager Class

Microsoft.Data.Edm.Library.Annotations Namespace