| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoList Interface > AddRange Method : AddRange(IEnumerable<String>) Method |
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.
void AddRange( IEnumerable<string> 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.
// 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);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.