RegularExpressionAttribute(string)
Initializes a new instance of the RegularExpressionAttribute class.
Declaration
public RegularExpressionAttribute(string pattern)Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The regular expression. |
RegularExpressionAttribute(string, RegexOptions)
Initializes a new instance of the RegularExpressionAttribute class and specifies options.
Declaration
public RegularExpressionAttribute(string pattern, RegexOptions options)Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The regular expression. |
| RegexOptions | options | The regular expression options. |