Dela via


EdmDirectValueAnnotationsManager.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.Library.Annotations
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

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

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

Parameters

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

Implements

IEdmDirectValueAnnotationsManager.SetAnnotationValue(IEdmElement, String, String, Object)

See Also

Reference

EdmDirectValueAnnotationsManager Class

Microsoft.Data.Edm.Library.Annotations Namespace