C# Class AsyncMediator.ValidationContext

A context used for validating commands. Contains a list of ValidationResult objects.
Afficher le fichier Open project: jpv001/AsyncMediator

Méthodes publiques

Méthode Description
AddError ( string memberName, string errorMessage ) : void

Adds a validation error.

AddErrors ( IEnumerable errors ) : void

Adds a number of validation errors.

ValidationContext ( ) : System.Collections.Generic

Default constructor. Creates a new ValidationContext with no errors.

Method Details

AddError() public méthode

Adds a validation error.
public AddError ( string memberName, string errorMessage ) : void
memberName string The member that has caused validation to fail.
errorMessage string The validation error message.
Résultat void

AddErrors() public méthode

Adds a number of validation errors.
public AddErrors ( IEnumerable errors ) : void
errors IEnumerable The list of objects.
Résultat void

ValidationContext() public méthode

Default constructor. Creates a new ValidationContext with no errors.
public ValidationContext ( ) : System.Collections.Generic
Résultat System.Collections.Generic