Share via


EdmDirectValueAnnotationsManager Class

Provides services for setting and getting transient annotations on elements.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Edm.Library.Annotations.EdmDirectValueAnnotationsManager

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

Syntax

'Declaration
Public Class EdmDirectValueAnnotationsManager _
    Implements IEdmDirectValueAnnotationsManager
'Usage
Dim instance As EdmDirectValueAnnotationsManager
public class EdmDirectValueAnnotationsManager : IEdmDirectValueAnnotationsManager
public ref class EdmDirectValueAnnotationsManager : IEdmDirectValueAnnotationsManager
type EdmDirectValueAnnotationsManager =  
    class 
        interface IEdmDirectValueAnnotationsManager 
    end
public class EdmDirectValueAnnotationsManager implements IEdmDirectValueAnnotationsManager

The EdmDirectValueAnnotationsManager type exposes the following members.

Constructors

  Name Description
Public method EdmDirectValueAnnotationsManager Initializes a new instance of the EdmDirectValueAnnotationsManager class.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAnnotationValue Retrieves an annotation value for an EDM element. Returns null if no annotation with the given name exists for the given element.
Public method GetAnnotationValues Retrieves a set of annotation values. For each requested value, returns null if no annotation with the given name exists for the given element.
Protected method GetAttachedAnnotations Retrieves the annotations that are directly attached to an element.
Public method GetDirectValueAnnotations Gets annotations associated with an element.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetAnnotationValue 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 method SetAnnotationValues Sets a set of annotation values. If a supplied value is null, no annotation is added and an existing annotation with the same name is removed.
Public method ToString (Inherited from Object.)

Top

Remarks

An object representing transient annotations is in one of these states: 1) Null, if the element has no transient annotations. 2) An EdmAnnotation, if the element has exactly one annotation. 3) A list of EdmAnnotation, if the element has more than one annotation. If the speed of annotation lookup for elements with many annotations becomes a concern, another option including a dictionary is possible.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Edm.Library.Annotations Namespace