Share via


SearchDocuments(String) Method

The SearchDocuments method of the SPWeb class searches documents in the Web site for the specified string.

Parameters

strSearchTerm   The string to search for in the documents.

Return Value

A Microsoft.SharePoint.SPSearchResultCollection object that represents the search results.

Remarks

Use of this method requires that Microsoft SQL Server be installed on the server and that you enable full-text search in SharePoint Central Administration.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security