Export (0) Print
Expand All

2.1.38 EnumType Member

A Member element is used inside an EnumType element to declare a member of an enumeration type.

The following rules apply to declared enumeration type members:

  • Member elements MUST specify a Name attribute that is unique within the EnumType declaration.

  • Member elements can specify the Value attribute that is a valid Edm.Long.

  • The order of the Member elements has meaning and MUST be preserved.

  • If the value of the Member element is not specified, the value is zero for the first member and one more than the value of the previous member for subsequent members.

  • Multiple members with different Name attributes can have the same Value attributes. When mapping from a value of the underlying type to a Member of an EnumType, the first matching Member is used.


© 2016 Microsoft