Table of Contents

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
object
ValidationErrorMethodConvention
Implements

Methods

Apply(ConventionContext)

Apply the convention.

public virtual void Apply(ConventionContext context)

Parameters

context ConventionContext

The context in which the convention is applied.