ValidatePatternAttribute Constructor

Initializes a new instance of the ValidatePatternAttribute class.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public ValidatePatternAttribute(
	string pattern,
	RegexOptions options = RegexOptions.None
)

Parameters

pattern  String
The regular expression to match against.
options  RegexOptions  (Optional)
A combination of RegexOptions values to use.

Remarks

This constructor does not validate if the regular expression specified in pattern is valid. The Regex instance is not constructed until the validation is performed.

See Also