Post­Sharp Documentation / 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: 5.0.43.0 (5.0.43.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