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)

public:
virtual bool Contains(
	Control^ c
)

Parameters

c
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
Show: