public bool IncludeValuesInErrorMessage { get; set; }
Public Property IncludeValuesInErrorMessage As Boolean
Get
Set
Dim instance As ValidateEnumValueAttribute
Dim value As Boolean
value = instance.IncludeValuesInErrorMessage
instance.IncludeValuesInErrorMessage = value
public:
property bool IncludeValuesInErrorMessage {
bool get ();
void set (bool value);
}
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.