EdmEnumMember Class

Definition

Represents a member of an EDM enumeration type.

public class EdmEnumMember : Microsoft.OData.Edm.EdmNamedElement, Microsoft.OData.Edm.IEdmEnumMember
type EdmEnumMember = class
    inherit EdmNamedElement
    interface IEdmEnumMember
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
Public Class EdmEnumMember
Inherits EdmNamedElement
Implements IEdmEnumMember
Inheritance
Implements

Constructors

EdmEnumMember(IEdmEnumType, String, IEdmEnumMemberValue)

Initializes a new instance of the EdmEnumMember class.

Properties

DeclaringType

Gets the type that this member belongs to.

Name

Gets the name of this element.

(Inherited from EdmNamedElement)
Value

Gets the value of this enumeration type member.

Extension Methods

IsValueExplicit(IEdmEnumMember, IEdmModel)

Gets an annotation indicating whether the value of an enum member should be explicitly serialized.

SetIsValueExplicit(IEdmEnumMember, IEdmModel, Nullable<Boolean>)

Sets an annotation indicating whether the value of an enum member should be explicitly serialized.

GetSymbolicString(IEdmVocabularyAnnotatable)

Gets the symbolic string of an annotated element. In the next breaking change, it's better to add a property into IEdmVocabularyAnnotatable.

Location(IEdmElement)

Gets the location of this element.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

Gets an annotatable element's vocabulary annotations as seen from a particular model.

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to