Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

UserControl.Validate Method

Evaluates specified validators and returns True if all of them are valid.

[Visual Basic]
Public Sub Validate( _
   ByVal validationContext As Object, _
   ParamArray validators As IValidator _
)
[C#]
public bool Validate(
   object validationContext,
   params IValidator[] validators
);

Parameters

validationContext
Object to validate.
validators
Validators to evaluate.

Return Value

True if all of the specified validators are valid, False otherwise.

Remarks

Each validator can itself represent a collection of other validators if it is an instance of ValidatorGroup or one of its derived types.

Please see the Validation Framework section in the documentation for more info.

See Also

UserControl Class | Spring.Web.UI Namespace