EnumItem Class
It is the caller's responsibility to ensure a Value is provided that will not conflict with enum items in other lists.
It is recommended to use a shorter friendly DisplayName and a compound Value comprised from the enum attribute's name and the item's name.
For example, if you are creating an attribute called Document Status with an enum item of In Progress then construct the EnumItem as:
var item = new EnumItem { DisplayName="In Progress", Value="DocumentStatus_InProgress" };
<DataContract(IsReference = true)> _
<Serializable()> _
<System.Reflection.Obfuscation(Exclude = true, ApplyToMembers = true)> _
Public Class EnumItem
Inherits ImportEntity
Implements IIdentifyByProperty
This language is not supported or no code example is available.
[DataContract(IsReference = true)]
[Serializable()]
[System.Reflection.Obfuscation(Exclude = true, ApplyToMembers = true)]
public class EnumItem : ImportEntity,
IIdentifyByProperty
This language is not supported or no code example is available.
[DataContract(IsReference = true)]
[Serializable()]
[System.Reflection.Obfuscation(Exclude = true, ApplyToMembers = true)]
public ref class EnumItem : public ImportEntity^,
public IIdentifyByProperty^
This language is not supported or no code example is available.
public
DataContract(IsReference = true)
Serializable()
System.Reflection.Obfuscation(Exclude = true, ApplyToMembers = true)
class EnumItem
extends ImportEntity
implements IIdentifyByProperty
This language is not supported or no code example is available.
Contracts.Data.ImportModel.EnumItem
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1