EdmEnumType.AddMember Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddMember(IEdmEnumMember) |
Adds a new member to this enum type. |
AddMember(String, IEdmEnumMemberValue) |
Creates and adds a new member to this enum type. |
AddMember(IEdmEnumMember)
Adds a new member to this enum type.
public void AddMember (Microsoft.OData.Edm.IEdmEnumMember member);
member this.AddMember : Microsoft.OData.Edm.IEdmEnumMember -> unit
Public Sub AddMember (member As IEdmEnumMember)
Parameters
- member
- IEdmEnumMember
The member to add.
Applies to
AddMember(String, IEdmEnumMemberValue)
Creates and adds a new member to this enum type.
public Microsoft.OData.Edm.EdmEnumMember AddMember (string name, Microsoft.OData.Edm.IEdmEnumMemberValue value);
member this.AddMember : string * Microsoft.OData.Edm.IEdmEnumMemberValue -> Microsoft.OData.Edm.EdmEnumMember
Public Function AddMember (name As String, value As IEdmEnumMemberValue) As EdmEnumMember
Parameters
- name
- String
Name of the member.
- value
- IEdmEnumMemberValue
Value of the member.
Returns
Created member.