StringValidatorAttribute
Declaratively instructs the .NET Framework to perform string validation on a configuration property. This class cannot be inherited.
Gets or sets the invalid characters for the property.
Gets or sets the maximum length allowed for the string to assign to the property.
Gets or sets the minimum allowed value for the string to assign to the property.
public StringValidatorAttribute()
Initializes a new instance of the StringValidatorAttribute class.