SPWeb.SearchListItems method (String)
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 SearchListItems ( _
strSearchTerm As String _
) As SPSearchResultCollection
'用途
Dim instance As SPWeb
Dim strSearchTerm As String
Dim returnValue As SPSearchResultCollection
returnValue = instance.SearchListItems(strSearchTerm)
public SPSearchResultCollection SearchListItems(
string strSearchTerm
)
參數
strSearchTerm
Type: System.String如果要在清單中搜尋詞彙。
傳回值
Type: Microsoft.SharePoint.SPSearchResultCollection
搜尋結果中。
備註
這個方法會要求在伺服器上安裝該Microsoft SQL Server和SharePoint Foundation管理中心中啟用全文檢索搜尋。