System.Web.UI.ValidatorCollection Class

Exposes an array of System.Web.UI.IValidator references. This class cannot be inherited.

See Also: ValidatorCollection Members


public sealed class ValidatorCollection : ICollection


Each System.Web.UI.ValidatorCollection reference is associated with a validation server control contained on the requested page. These controls add themselves to this collection when the Control.Init event of the System.Web.UI.Page object is handled. They remove themselves when the Control.Unload event of the System.Web.UI.Page object is handled. The System.Web.UI.Page class inherits both of these methods from the System.Web.UI.Control class.

You can access this collection, its methods, and its properties through the Page.Validators property. If the tested condition of any validator in this collection fails, the Page.IsValid property is set to false.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0,