Interface IArgumentValidator
Provides validation for a Command
Namespace: McMaster.Extensions.CommandLineUtils.Validation
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public interface IArgumentValidator
Methods
| Improve this Doc View SourceGetValidationResult(CommandArgument, ValidationContext)
Validates the values specified for Values.
Declaration
ValidationResult GetValidationResult(CommandArgument argument, ValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
Command |
argument | The argument. |
System. |
context | The validation context. |
Returns
Type | Description |
---|---|
System. |
The validation result. Returns System. |