EmptyControlCollection.AddAt(Int32, Control) Method

Definition

Denies the addition of the specified Control object to the collection, at the specified index position.

public:
 override void AddAt(int index, System::Web::UI::Control ^ child);
public override void AddAt (int index, System.Web.UI.Control child);
override this.AddAt : int * System.Web.UI.Control -> unit
Public Overrides Sub AddAt (index As Integer, child As Control)

Parameters

index
Int32

The index at which to add the Control. This parameter is always ignored.

child
Control

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

Exceptions

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

Applies to