Share via


SearchListItems(String, UInt32, Microsoft.SharePoint.SPSearchResultCollectionPosition) Method

The SearchListItems method of the SPWeb class searches list data in the Web site for the specified string based on the specified row limit and page position for the return set.

Parameters

strSearchTerm   The string to search for in the lists.

nRowLimit   A 32-bit unsigned integer that specifies the row limit.

pagePos   A Microsoft.SharePoint.SPSearchResultCollectionPosition object that specifies the position in a paged view of the search results.

Return Value

A Microsoft.SharePoint.SPSearchResultCollection object that represents the search results.

Remarks

Use of this method requires that Microsoft SQL Server be installed on the server and that you enable full-text search in SharePoint Central Administration.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security