SPWeb.SearchListItems 方法 (String)
此类或成员已被弃用。更新或编写使用此类或此成员的新应用程序时,请改用新的类或成员。 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 _
) As SPSearchResultCollection
用法
Dim instance As SPWeb
Dim strSearchTerm As String
Dim returnValue As SPSearchResultCollection
returnValue = instance.SearchListItems(strSearchTerm)
public SPSearchResultCollection SearchListItems(
string strSearchTerm
)
参数
strSearchTerm
类型:System.StringThe term to search for in the lists.
返回值
类型: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.