EdmEnumType.AddMember Method (String, IEdmPrimitiveValue)
Creates and adds a new member to this enumeration type.
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Function AddMember ( _
name As String, _
value As IEdmPrimitiveValue _
) As EdmEnumMember
'Usage
Dim instance As EdmEnumType
Dim name As String
Dim value As IEdmPrimitiveValue
Dim returnValue As EdmEnumMember
returnValue = instance.AddMember(name, _
value)
public EdmEnumMember AddMember(
string name,
IEdmPrimitiveValue value
)
public:
EdmEnumMember^ AddMember(
String^ name,
IEdmPrimitiveValue^ value
)
member AddMember :
name:string *
value:IEdmPrimitiveValue -> EdmEnumMember
public function AddMember(
name : String,
value : IEdmPrimitiveValue
) : EdmEnumMember
Parameters
- name
Type: System.String
The name of the member.
- value
Type: Microsoft.Data.Edm.Values.IEdmPrimitiveValue
The value of the member.
Return Value
Type: Microsoft.Data.Edm.Library.EdmEnumMember
The created member.