GetItems(Microsoft.SharePoint.SPView) Method
The GetItems method of the SPList class returns a collection of list items from the list based on the specified view.
Parameters
view A Microsoft.SharePoint.SPView object that represents the view.
Return Value
A Microsoft.SharePoint.SPListItemCollection object that represents the list items.
Example
The following code example shows uses the GetItems method to return items from a list according to the specified view.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
The example assumes the existence of a .aspx page that contains a label control.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security