ValidatePatternAttribute Constructor

Initializes a new instance of the ValidatePatternAttribute class.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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