ZennoLab Assemblies Documentation
AddRange(IEnumerable<String>) Method
Example 

Type: System.Collection.Generic.IEnumerable<String>

The collection whose elements should be added to the end of the IZennoList. The collection itself cannot be null, but it can contain elements that are null.

Adds the elements from IEnumerable<String> collection of the specified collection to the end of IZennoList.
Syntax
void AddRange( 
   IEnumerable<string> range
)

Parameters

range

Type: System.Collection.Generic.IEnumerable<String>

The collection whose elements should be added to the end of the IZennoList. The collection itself cannot be null, but it can contain elements that are null.

Remarks
The order of the elements in the collection is preserved in the IZennoList.
Example
The following code example demonstrates the AddRange method.
// create an array of string for adding
string[] items = new string[3] { "one", "two", "three" };
// add range of the string to the project list
project.Lists["List 1"].AddRange(items);
// create a list of string
List<string> list = new List<string> { "four", "five", "six" };
// add list of string to the project list
project.Lists["List 1"].AddRange(list);
// create an array of string for adding
$items = array( "one", "two", "three" );
// add range of the string to the project list
$project->Lists->get_Item("List 1")->AddRange($items);
// create a list of string
$list = new  System\Collections\Generic\List<string> { "four", "five", "six" };
// add list of string to the project list
$project->Lists->get_Item("List 1")->AddRange($list);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoList Interface
IZennoList Members
Overload List

Send Feedback