SharePoint Integrator V4 - Online Help
SharePoint Integrator V4
Questions / Feedback?

ListItems Method

Lists the items in the specified SharePoint list.

Syntax

[VB.NET]
Public Sub ListItems()
[C#]
public void ListItems();

Remarks

The Item event will be fired for each item. The Items collection will contain the received items.

The Query property can be used to select a subset of items.

Example:

ListControl.Query = "<Query><Where><Gt><FieldRef Name="ID" /><Value Type="Counter">1</Value></Gt></Where></Query>";
ListControl.ListItems();

for (int i=0; i<list.Items.Count; i++) {
	Item item = ListControl.Items[i];
	for (int j=0; j<item.FieldCount; j++) {
		item.FieldIndex = j;
		print item.FieldName + " = " + item.FieldValue;
	}
}
If the results are paged the ItemMarker property will be populated. You may then call ListItems again to get the next page of results. To get all the results continue to call ListItems until ItemMarker is empty.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 4.0.6240.0