SPWeb.SearchDocuments 方法 (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 SearchDocuments ( _
    strSearchTerm As String _
) As SPSearchResultCollection
用法
Dim instance As SPWeb
Dim strSearchTerm As String
Dim returnValue As SPSearchResultCollection

returnValue = instance.SearchDocuments(strSearchTerm)
public SPSearchResultCollection SearchDocuments(
    string strSearchTerm
)

参数

  • strSearchTerm
    类型:System.String

    The term to search for in the documents.

返回值

类型: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 命名空间