PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Regular­Expression­Attribute Class/Regular­Expression­Attribute Constructor/Regular­Expression­Attribute Constructor (String, Regex­Options)

RegularExpressionAttribute Constructor (String, RegexOptions)

Initializes a new RegularExpressionAttribute and specify options.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public RegularExpressionAttribute(
	string pattern,
	RegexOptions options
)

Parameters

pattern
Type: System.String
The regular expression.
options
Type: System.Text.RegularExpressions.RegexOptions
Options.
See Also