Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CollectionValidator Class

IValidator implementation that supports validating collections.

For a list of all members of this type, see CollectionValidator Members .

System.Object
   BaseValidator
      BaseValidatorGroup
         CollectionValidator

[Visual Basic]
Public Class CollectionValidator
    Inherits BaseValidatorGroup
[C#]
public class CollectionValidator : BaseValidatorGroup

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This validator will be valid only when all of the validators in the Validators collection are valid for all of the objects in the specified collection.

You can specify if you want to validate all of the collection elements regardless of the errors by setting the FastValidate property to false.

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

If you set the IncludeElementErrors property to true, ValidationErrors 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.

Requirements

Namespace: Spring.Validation

Assembly: Spring.Core (in Spring.Core.dll)

See Also

CollectionValidator Members | Spring.Validation Namespace