共用方式為


SPWeb.SearchDocuments 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.請改用Microsoft.SharePoint.Search.Query.KeywordQuery類別或FullTextSqlQuery類別的Execute方法。

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

Syntax

'宣告
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
    Type: System.String

    如果要在文件中搜尋詞彙。

  • nRowLimit
    Type: System.UInt32

    傳回的文件的資料列的數目上限。

傳回值

Type: Microsoft.SharePoint.SPSearchResultCollection
搜尋結果中。

備註

這個方法會要求在伺服器上安裝該Microsoft SQL Server和SharePoint Foundation管理中心中啟用全文檢索搜尋。

請參閱

參照

SPWeb class

SPWeb members

SearchDocuments overload

Microsoft.SharePoint namespace