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 | |
---|---|---|
EdmDirectValueAnnotationsManager | Initializes a new instance of the EdmDirectValueAnnotationsManager class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetAnnotationValue | Retrieves an annotation value for an EDM element. Returns null if no annotation with the given name exists for the given element. | |
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. | |
GetAttachedAnnotations | Retrieves the annotations that are directly attached to an element. | |
GetDirectValueAnnotations | Gets annotations associated with an element. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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. | |
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. | |
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.