SPWeb.SearchDocuments 方法 (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 SearchDocuments ( _
    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.SearchDocuments(strSearchTerm, _
    nRowLimit, pagePos)
public SPSearchResultCollection SearchDocuments(
    string strSearchTerm,
    uint nRowLimit,
    SPSearchResultCollectionPosition pagePos
)

参数

  • strSearchTerm
    类型:System.String

    The term to search for in the documents.

  • nRowLimit
    类型:System.UInt32

    The maximum number of rows of documents returned.

返回值

类型: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.

另请参阅

引用

SPWeb 类

SPWeb 成员

SearchDocuments 重载

Microsoft.SharePoint 命名空间