public bool AllowNonDefinedValues { get; set; }
Public Property AllowNonDefinedValues As Boolean
Get
Set
Dim instance As ValidateEnumValueAttribute
Dim value As Boolean
value = instance.AllowNonDefinedValues
instance.AllowNonDefinedValues = value
public:
property bool AllowNonDefinedValues {
bool get ();
void set (bool value);
}
Non-defined values can be provided using the underlying numeric type of the enumeration. If this property is , this validator will not check whether a value provided in such a way actually is actually one of the enumeration's defined values.
Setting this to essentially makes this validator do nothing. It is useful if you want to use it solely to list defined values in the usage help, or if you want to use one of the other properties that affect the EnumConverter class without also checking for defined values.