Edit

Share via


RegexStringValidator(String) Constructor

Definition

Initializes a new instance of the RegexStringValidator class.

public:
 RegexStringValidator(System::String ^ regex);
public RegexStringValidator (string regex);
new System.Configuration.RegexStringValidator : string -> System.Configuration.RegexStringValidator
Public Sub New (regex As String)

Parameters

regex
String

A string that specifies a regular expression.

Exceptions

regex is null or an empty string ("").

Applies to