Class ValidationErrorMethodConvention
Invokes a method named OnValidationError
on the model type of CommandLineApplication<TModel>
to handle validation errors.
Inheritance
System.Object
ValidationErrorMethodConvention
Implements
Namespace: McMaster.Extensions.CommandLineUtils.Conventions
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class ValidationErrorMethodConvention : IConvention
Methods
| Improve this Doc View SourceApply(ConventionContext)
Apply the convention.
Declaration
public virtual void Apply(ConventionContext context)
Parameters
Type | Name | Description |
---|---|---|
ConventionContext | context | The context in which the convention is applied. |