Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Models Inheritance: System.ObjectSyntax
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
objectSyntax
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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
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
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
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
objectSyntax
Returns
Type:string?