Interface ICommandValidator
Provides validation on a command
Namespace: McMaster.Extensions.CommandLineUtils.Validation
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public interface ICommandValidator
Methods
| Improve this Doc View SourceGetValidationResult(CommandLineApplication, ValidationContext)
Validates a command
Declaration
ValidationResult GetValidationResult(CommandLineApplication command, ValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
CommandLineApplication | command | The command. |
System.ComponentModel.DataAnnotations.ValidationContext | context | The validation context. |
Returns
Type | Description |
---|---|
System.ComponentModel.DataAnnotations.ValidationResult | The validation result. Returns System.ComponentModel.DataAnnotations.ValidationResult.Success if the values pass validation. |