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傳回的文件的資料列的數目上限。
pagePos
Type: Microsoft.SharePoint.SPSearchResultCollectionPosition搜尋結果的分頁檢視中的位置。
傳回值
Type: Microsoft.SharePoint.SPSearchResultCollection
搜尋結果中。
備註
這個方法會要求在伺服器上安裝該Microsoft SQL Server和SharePoint Foundation管理中心中啟用全文檢索搜尋。