EmptyControlCollection.Add Method (Control)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Denies the addition of the specified Control object to the collection.

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

public override void Add(
	Control child
)

Parameters

child
Type: System.Web.UI.Control

The Control to be added. This parameter is always ignored.

Exception Condition
HttpException

Always issued, because the control does not allow child controls.

.NET Framework
Available since 1.1
Return to top
Show: