ChoiceAttribute.Value property
Gets or sets the choice value that is mapped to the enumeration value.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Property Value As String
Get
Set
'Usage
Dim instance As ChoiceAttribute
Dim value As String
value = instance.Value
instance.Value = value
public string Value { get; set; }
Property value
Type: System.String
An String that represents a choice value that is mapped to the enumeration value.
Examples
The following is an example of Value in use:
public enum TaskStatusChoices : int {
Invalid,
None,
[Choice(Value="Not Started")]
NotStarted,
[Choice(Value="In Progress")]
InProgress,
[Choice(Value="Completed")]
Completed,
[Choice(Value="Deferred")]
Deferred,
[Choice(Value="Waiting on someone else")]
WaitingOnSomeoneElse,
}