PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsRegular­Expression­AttributeRegular­Expression­Attribute
Open sandboxFocus

RegularExpressionAttribute Constructor

RegularExpressionAttribute(String)

Initializes a new RegularExpressionAttribute.

Declaration
public RegularExpressionAttribute(string pattern)
Parameters
Type Name Description
System.String pattern

The regular expression.

RegularExpressionAttribute(String, RegexOptions)

Initializes a new RegularExpressionAttribute and specify options.

Declaration
public RegularExpressionAttribute(string pattern, RegexOptions options)
Parameters
Type Name Description
System.String pattern

The regular expression.

RegexOptions options

Options.