Export (0) Print
Expand All

SPWeb.SearchListItems method (String, UInt32, SPSearchResultCollectionPosition)

This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead.

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

public SPSearchResultCollection SearchListItems(
	string strSearchTerm,
	uint nRowLimit,
	SPSearchResultCollectionPosition pagePos
)

Parameters

strSearchTerm
Type: System.String

The term to search for in the lists.

nRowLimit
Type: System.UInt32

The maximum number of rows of items returned.

pagePos
Type: Microsoft.SharePoint.SPSearchResultCollectionPosition

The position in a paged view of the search results.

Return value

Type: Microsoft.SharePoint.SPSearchResultCollection
The search results.

This method requires that Microsoft SQL Server be installed on the server and that full-text search is enabled in SharePoint Foundation Central Administration.

Show:
© 2014 Microsoft