SPList::GetItems method (SPView)

Returns a collection of items from the list based on the specified view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

No code example is currently available or this language may not be supported.

Parameters

view
Type: Microsoft.SharePoint.SPView

The view to use in selecting list items.

Return value

Type: Microsoft.SharePoint.SPListItemCollection
The list items specified by the view.

ExceptionCondition
ArgumentNullException

view is null (Nothing in Visual Basic).

The following example is a console application that uses the "My Tasks" view of the Tasks list to retrieve list items. After fetching the data, the application prints a simple report to the console.

No code example is currently available or this language may not be supported.
Show: