Interface IArgumentValidator
Provides validation for a CommandArgument.
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 |
---|---|---|
CommandArgument | argument | The argument. |
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. |