RegexStringValidatorAttribute Constructor (String^)
.NET Framework (current version)
Initializes a new instance of the RegexStringValidatorAttribute object.
Assembly: System.Configuration (in System.Configuration.dll)
Parameters
- regex
-
Type:
System::String^
The string to use for regular expression validation.
The regex parameter contains the regular expression pattern that a string must match before it can be assigned to the decorated configuration-element property.
You use this constructor in the attributed model to ensure that the string value assigned to the related property contains only the allowed characters.
.NET Framework
Available since 2.0
Available since 2.0
Show: