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: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
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