Class ValidationErrorMethodConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Invokes a method named OnValidationError on the model type of CommandLineApplication<TModel>
to handle validation errors.
public class ValidationErrorMethodConvention : IConvention
- Inheritance
-
objectValidationErrorMethodConvention
- Implements
Methods
Apply(ConventionContext)
Apply the convention.
public virtual void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.