CliOptionAttributeValidationRules Property

Gets or sets a set of validation rules used to determine if option's argument value(s) is valid.

When combining validation rules, use bitwise 'or' operator(| in C#):

C#
ValidationRules = CliValidationRules.NonExistingFile | CliValidationRules.LegalPath

Definition

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

Property Value

CliValidationRules

See Also