ZennoLab Assemblies Documentation
GetItems Method (IZennoList)
Example 

Type: System.String

The filter of range.

Type: System.Boolean

true if need to remove the items, otherwise and default false.

Gets items from the list satisfies the filter.
Syntax
IEnumerable<string> GetItems( 
   string filter,
   bool removeItems
)

Parameters

filter

Type: System.String

The filter of range.

removeItems

Type: System.Boolean

true if need to remove the items, otherwise and default false.

Return Value

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

The collection of requried elements.

Example
The following code example demonstrates the GetItems method.
// gets 20 random items from several ranges of the list
return string.Join(";", project.Lists["List 1"].GetItems("random20(1,12-15,35-end)"));
// gets 20 random items from several ranges of the list
return String::Join(";", $project->Lists->get_Item("List 1")->GetItems("random20(1,12-15,35-end)"));
Requirements

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

See Also

Reference

IZennoList Interface
IZennoList Members

Send Feedback