ValidatorCollection.Contains Method (IValidator)

 

Determines whether the specified validation server control is contained within the page's ValidatorCollection collection.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

member Contains : 
        validator:IValidator -> bool

Parameters

validator
Type: System.Web.UI.IValidator

The validation server control to check for.

Return Value

Type: System.Boolean

true if the validation server control is in the collection; otherwise, false.

The following code example demonstrates how to use the Contains method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: