ValidateEnumValueAttribute.IncludeValuesInErrorMessage 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: 3.1.1
C#
public bool IncludeValuesInErrorMessage { get; set; }

Property Value

Boolean
true to include the values; otherwise, false.

Remarks

This error message is only used if the validation fails, which only the case for undefined numerical values. Strings that don't match the name don't use this error.

See Also