TableRowCollection.IList.Add Method (Object)


This API supports the product infrastructure and is not intended to be used directly from your code.

Adds an object to the collection.

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

int IList.Add(
	object o


Type: System.Object

The object to add to the collection.

Return Value

Type: System.Int32

The index at which the object was added to the collection.

Typically, you should use the TableRowCollection.Add method to add an element to a TableRowCollection object.

The IList.Add method is an explicit interface member implementation. It can be used only when the TableRowCollection instance is cast to an IList interface.

.NET Framework
Available since 1.1
Return to top