C# Класс Spring.Validation.AnyValidatorGroup

IValidator implementation that supports grouping of validators.

This validator will be valid when one or more of the validators in the Validators collection are valid.

ValidationErrors property will return a union of all validation error messages for the contained validators, but only if this validator is not valid (meaning, when none of the contained validators are valid).

Note, that BaseValidatorGroup.FastValidate defaults to true for this validator type!

Наследование: Spring.Validation.BaseValidatorGroup
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AnyValidatorGroup ( ) : System.Collections.Generic

Initializes a new instance of the AnyValidatorGroup class.

AnyValidatorGroup ( IExpression when ) : System.Collections.Generic

Initializes a new instance of the AnyValidatorGroup class.

AnyValidatorGroup ( string when ) : System.Collections.Generic

Initializes a new instance of the AnyValidatorGroup class.

Защищенные методы

Метод Описание
ValidateGroup ( object>.IDictionary contextParams, IValidationErrors errors, object validationContext ) : bool

Validates the specified object.

Описание методов

AnyValidatorGroup() публичный Метод

Initializes a new instance of the AnyValidatorGroup class.
public AnyValidatorGroup ( ) : System.Collections.Generic
Результат System.Collections.Generic

AnyValidatorGroup() публичный Метод

Initializes a new instance of the AnyValidatorGroup class.
public AnyValidatorGroup ( IExpression when ) : System.Collections.Generic
when IExpression The expression that determines if this validator should be evaluated.
Результат System.Collections.Generic

AnyValidatorGroup() публичный Метод

Initializes a new instance of the AnyValidatorGroup class.
public AnyValidatorGroup ( string when ) : System.Collections.Generic
when string The expression that determines if this validator should be evaluated.
Результат System.Collections.Generic

ValidateGroup() защищенный Метод

Validates the specified object.
protected ValidateGroup ( object>.IDictionary contextParams, IValidationErrors errors, object validationContext ) : bool
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors instance to add error messages to.
validationContext object The object to validate.
Результат bool