SPListItemCollectionPosition Class
The SPListItemCollectionPosition class supports paging through data sets, storing the state that is needed to get the next page of data for a specific view of a list.
System.Object
Microsoft.SharePoint.SPListItemCollectionPosition
Public Constructors
The following table shows the public constructors of the SPListItemCollectionPosition class and a brief description of each.
Name | Description |
---|---|
SPListItemCollectionPosition | Initializes a new instance of the SPListItemCollectionPosition class. |
Public Properties
The following table shows the public properties of the SPListItemCollectionPosition class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
PagingInfo | String | Gets or sets paging information used to generate the next page of data. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Example
The following code example uses the ListItemCollectionPosition properties of the SPListItemCollection class and the SPQuery class to return an SPListItemCollectionPosition object for storing where each page of data leaves off in the collection of items and displays the titles of items in groups of 10 rows apiece.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Namespace: Microsoft.SharePoint
Platforms: Microsoft Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security