System.Web.UI.WebControls.ViewCollection.Add Method

Adds the specified System.Web.UI.WebControls.View control to the collection.

Syntax

public override void Add (System.Web.UI.Control v)

Parameters

v
The System.Web.UI.WebControls.View control to add to the collection.

Remarks

The ViewCollection.Add(System.Web.UI.Control) method adds the new control to the end of an ordinal index array. The control can only be an instance of a System.Web.UI.WebControls.View control.

To add a control to the collection at a specific index location, use the ViewCollection.AddAt(int, System.Web.UI.Control) method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0