Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionValidator.Validate(Object, IDictionary, IValidationErrors) Method

Validates the specified collection of objects. If the IncludeElementErrors property was set to true, errors collection will contain a union of all validation error messages for the contained validators; Otherwise it will contain only error messages that were set for this Validator.

[Visual Basic]
Public Overrides Overloads Sub Validate( _
   ByVal validationContext As Object, _
   ByVal contextParams As IDictionary, _
   ByVal errors As IValidationErrors _
) _
    Implements IValidator.Validate
[C#]
public override bool Validate(
   object validationContext,
   IDictionary contextParams,
   IValidationErrors errors
);

Parameters

validationContext
The collection to validate.
contextParams
Additional context parameters.
errors
ValidationErrors instance to add error messages to.

Return Value

True if validation was successful, False otherwise.

Implements

IValidator.Validate

See Also

CollectionValidator Class | Spring.Validation Namespace | CollectionValidator.Validate Overload List