CliOptionAttributeValidationPattern Property

Gets or sets a regular expression pattern used to determine if option's argument value(s) is valid.

Note that you can specify regular expression options inline in the pattern with the syntax (?imnsx-imnsx):

C#
ValidationPattern = @"(?i)^[a-z]+$"
Regular expression quick reference
Regular expression options

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.8
C#
public string ValidationPattern { get; set; }

Property Value

String

See Also