SPWeb.SearchListItems 方法 (String, UInt32, SPSearchResultCollectionPosition)
此类或成员已被弃用。更新或编写使用此类或此成员的新应用程序时,请改用新的类或成员。 Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function SearchListItems ( _
strSearchTerm As String, _
nRowLimit As UInteger, _
pagePos As SPSearchResultCollectionPosition _
) As SPSearchResultCollection
用法
Dim instance As SPWeb
Dim strSearchTerm As String
Dim nRowLimit As UInteger
Dim pagePos As SPSearchResultCollectionPosition
Dim returnValue As SPSearchResultCollection
returnValue = instance.SearchListItems(strSearchTerm, _
nRowLimit, pagePos)
public SPSearchResultCollection SearchListItems(
string strSearchTerm,
uint nRowLimit,
SPSearchResultCollectionPosition pagePos
)
参数
strSearchTerm
类型:System.StringThe term to search for in the lists.
nRowLimit
类型:System.UInt32The maximum number of rows of items returned.
pagePos
类型:Microsoft.SharePoint.SPSearchResultCollectionPositionThe position in a paged view of the search results.
返回值
类型: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.