Share via


SPWeb.SearchDocuments 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. Use o método Execute da classe Microsoft.SharePoint.Search.Query.KeywordQuery ou a classe FullTextSqlQuery .

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

Syntax

'Declaração
Public Function SearchDocuments ( _
    strSearchTerm As String _
) As SPSearchResultCollection
'Uso
Dim instance As SPWeb
Dim strSearchTerm As String
Dim returnValue As SPSearchResultCollection

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

Parâmetros

  • strSearchTerm
    Type: System.String

    O termo para pesquisar nos documentos.

Valor retornado

Type: Microsoft.SharePoint.SPSearchResultCollection
Os resultados da pesquisa.

Comentários

Este método requer que Microsoft SQL Server ser instalado no servidor e que a pesquisa de texto completo está habilitada no SharePoint Foundation Administração Central.

Ver também

Referência

SPWeb class

SPWeb members

SearchDocuments overload

Microsoft.SharePoint namespace