RegularExpressionAttribute(string, RegexOptions)
Initializes a new instance of the RegularExpressionAttribute class.
Declaration
public RegularExpressionAttribute(string pattern, RegexOptions options = RegexOptions.None)Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The regular expression pattern to match against. |
| RegexOptions | options | Options that modify the regular expression behavior. |