Share via


ODataEnumValue Class

 

Represents the OData enumeration value.

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataAnnotatable
    Microsoft.OData.Core.ODataValue
      Microsoft.OData.Core.ODataEnumValue

Syntax

public sealed class ODataEnumValue : ODataValue
public ref class ODataEnumValue sealed : ODataValue
[<Sealed>]
type ODataEnumValue = 
    class
        inherit ODataValue
    end
Public NotInheritable Class ODataEnumValue
    Inherits ODataValue

Constructors

Name Description
System_CAPS_pubmethod ODataEnumValue(String)

Initializes a new instance of the ODataEnumValue class.

System_CAPS_pubmethod ODataEnumValue(String, String)

Initializes a new instance of the ODataEnumValue class.

Properties

Name Description
System_CAPS_pubproperty TypeName

Gets the type name in EDM model.

System_CAPS_pubproperty Value

Gets the backing type value, can be "3" or "White" or "Black,Yellow,Red".

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetAnnotation<T>()

Gets or sets the annotation by type.(Inherited from ODataAnnotatable.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetAnnotation<T>(T)

Sets an annotation of type T.(Inherited from ODataAnnotatable.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Microsoft.OData.Core Namespace

Return to top