IEdmDirectValueAnnotationsManager.SetAnnotationValue Method

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.

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

Syntax

'Declaration
Sub SetAnnotationValue ( _
    element As IEdmElement, _
    namespaceName As String, _
    localName As String, _
    value As Object _
)
'Usage
Dim instance As IEdmDirectValueAnnotationsManager 
Dim element As IEdmElement 
Dim namespaceName As String 
Dim localName As String 
Dim value As Object

instance.SetAnnotationValue(element, _
    namespaceName, localName, value)
void SetAnnotationValue(
    IEdmElement element,
    string namespaceName,
    string localName,
    Object value
)
void SetAnnotationValue(
    IEdmElement^ element, 
    String^ namespaceName, 
    String^ localName, 
    Object^ value
)
abstract SetAnnotationValue : 
        element:IEdmElement * 
        namespaceName:string * 
        localName:string * 
        value:Object -> unit
function SetAnnotationValue(
    element : IEdmElement, 
    namespaceName : String, 
    localName : String, 
    value : Object
)

Parameters

  • namespaceName
    Type: System.String
    The namespace that the annotation belongs to.
  • localName
    Type: System.String
    The name of the annotation within the namespace.

See Also

Reference

IEdmDirectValueAnnotationsManager Interface

Microsoft.Data.Edm.Annotations Namespace