EdmEnumValue Class

Definition

Represents an EDM enumeration type value.

public class EdmEnumValue : Microsoft.OData.Edm.Vocabularies.EdmValue, Microsoft.OData.Edm.Vocabularies.IEdmEnumValue
type EdmEnumValue = class
    inherit EdmValue
    interface IEdmEnumValue
    interface IEdmPrimitiveValue
    interface IEdmValue
    interface IEdmElement
Public Class EdmEnumValue
Inherits EdmValue
Implements IEdmEnumValue
Inheritance
EdmEnumValue
Implements

Constructors

EdmEnumValue(IEdmEnumTypeReference, IEdmEnumMember)

Initializes a new instance of the EdmEnumValue class.

EdmEnumValue(IEdmEnumTypeReference, IEdmEnumMemberValue)

Initializes a new instance of the EdmEnumValue class.

Properties

Type

Gets the type of this value.

(Inherited from EdmValue)
Value

Gets the underlying type value of the enumeration type.

ValueKind

Gets the kind of this value.

Explicit Interface Implementations

IEdmDelayedValue.Value (Inherited from EdmValue)

Extension Methods

IsSerializedAsElement(IEdmValue, IEdmModel)

Gets an annotation indicating if the value should be serialized as an element.

SetIsSerializedAsElement(IEdmValue, IEdmModel, Boolean)

Sets an annotation indicating if the value should be serialized as an element.

Location(IEdmElement)

Gets the location of this element.

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