ControlCollection.Contains Method (Control)


Determines whether the specified server control is in the parent server control's ControlCollection object.

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

abstract Contains : 
        c:Control -> bool
override Contains : 
        c:Control -> bool


Type: System.Web.UI.Control

The server control to search for in the collection.

Return Value

Type: System.Boolean

true if the specified server control exists in the collection; otherwise, false.

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

.NET Framework
Available since 1.1
Return to top