ValidateEnumValueAttribute.AllowNumericValues Property

Gets or sets a value that indicates whether the value provided by the user can the underlying numeric type of the enumeration.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool AllowNumericValues { get; set; }

Property Value

Boolean
true if numeric values are allowed; otherwise, false to allow only value names. The default value is true.

Remarks

This property is not used by the ValidateEnumValueAttribute class itself, but by the EnumConverter class. Therefore, this property may not work if a custom argument converter is used, unless that custom converter also checks this property.

See Also