Search Results for

    Show / Hide Table of Contents

    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 Source

    GetValidationResult(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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top