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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public bool IncludeValuesInErrorMessage { get; set; }

Property Value

Boolean
to include the values; otherwise, .

Remarks

This property is only used if the validation fails, which only the case for undefined numerical values. Other strings that don't match the name of one of the defined constants use the error message from the converter, which in the case of the EnumConverter always shows the possible values.

See Also