MobileListItemCollection.Insert Method

Definition

Adds an item to the specified location in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Overloads

Insert(Int32, String)

Adds an item to the specified location in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Insert(Int32, MobileListItem)

Adds an item to the specified location in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Insert(Int32, String)

Adds an item to the specified location in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual void Insert(int index, System::String ^ item);
public virtual void Insert (int index, string item);
abstract member Insert : int * string -> unit
override this.Insert : int * string -> unit
Public Overridable Sub Insert (index As Integer, item As String)

Parameters

index
Int32

The index.

item
String

The item to be inserted into the list.

Remarks

The index value must be between 0 and the size of the collection. If index is the size of the collection, item is added to the end of the collection. This overload first creates a new MobileListItem object with the given string, and inserts this item.

See also

Applies to

Insert(Int32, MobileListItem)

Adds an item to the specified location in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 void Insert(int index, System::Web::UI::MobileControls::MobileListItem ^ item);
public void Insert (int index, System.Web.UI.MobileControls.MobileListItem item);
member this.Insert : int * System.Web.UI.MobileControls.MobileListItem -> unit
Public Sub Insert (index As Integer, item As MobileListItem)

Parameters

index
Int32

The index.

item
MobileListItem

The item to be inserted into the list.

Remarks

The index value must be between 0 and the size of the collection. If index is the size of the collection, item is added to the end of the collection.

See also

Applies to