Muokkaa

Jaa


ListItemCollection.AddRange(ListItem[]) Method

Definition

Adds the items in an array of ListItem objects to the collection.

public:
 void AddRange(cli::array <System::Web::UI::WebControls::ListItem ^> ^ items);
public void AddRange (System.Web.UI.WebControls.ListItem[] items);
member this.AddRange : System.Web.UI.WebControls.ListItem[] -> unit
Public Sub AddRange (items As ListItem())

Parameters

items
ListItem[]

An array of ListItem objects that contain the items to add to the collection.

Exceptions

items is null.

Remarks

Use the AddRange method to add the items in the array of ListItem objects specified by the items parameter. This allows you to add multiple ListItem objects to the collection in a single step.

Applies to

See also