ValidateEnumValueAttributeIncludeValuesInErrorMessage Property

Gets or sets a value that indicates whether the possible values of the enumeration should be included in the error message if validation fails.

Definition

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

Property Value

Boolean
to include the values; otherwise, . The default value is .

Remarks

This property is used when validation fails, and is also checked by the EnumConverter class when conversion fails due to an invalid string value.

See Also