Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Models Inheritance: System.Object

Syntax

Summary

Represents one named member of an EdmEnumType.

Remarks

The EdmEnumMember.Value is the integral value declared in CSDL. It is the storage representation only; JSON payloads carry the member EdmEnumMember.Name by default.

Constructors

.ctor

Initializes a new instance of the EdmEnumMember class.

Syntax

.ctor

Initializes a new instance of the EdmEnumMember class with the specified name and value.

Syntax

Parameters

Exceptions

.ctor Inherited

Inherited from object

Syntax

Properties

Name

Gets or sets the member name.

Syntax

Property Value

Type: string The name as declared in CSDL, for example Red.

Value

Gets or sets the integral value of the member.

Syntax

Property Value

Type: long The declared value, or the zero-based declaration index when CSDL omits Value.

Methods

Equals Override

Determines whether the specified object is equal to the current member.

Syntax

Parameters

Returns

Type: bool true if the specified object has the same name and value; otherwise, false.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Override

Returns a hash code for the current member.

Syntax

Returns

Type: int A hash code for the current member.

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Override

Returns a string representation of the member.

Syntax

Returns

Type: string The name and value, for example Red = 0.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?