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" };

Namespace: Contracts.Data.ImportModel
Assembly: Contracts (in Contracts.dll)

<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.
Name Description
Protected constructor ImportEntity() (inherited from ImportEntity).
Top
Name Description
Public property DisplayName
Public property Identity (inherited from ImportEntity).
Public property ImportMode (inherited from ImportEntity).
Public property IncludedInTestMode (inherited from ImportEntity).
Public property Value
Top
Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IdentifyByProperty(string)
Protected method IsRequired<T>(T, Expression<Func<TObject>>) (inherited from ImportEntity).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ToString()
Public method Validate() (inherited from ImportEntity).
Protected method ValidateRequiredFields()
Top

.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