SPWeb.SearchDocuments-Methode (String, UInt32, SPSearchResultCollectionPosition)
Diese Klasse bzw. dieses Mitglied ist veraltet. Wenn Sie neue Anwendungen aktualisieren oder schreiben, die diese Klasse bzw. dieses Mitglied verwenden, verwenden Sie stattdessen die neue Klasse bzw. das neue Mitglied. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function SearchDocuments ( _
strSearchTerm As String, _
nRowLimit As UInteger, _
pagePos As SPSearchResultCollectionPosition _
) As SPSearchResultCollection
'Usage
Dim instance As SPWeb
Dim strSearchTerm As String
Dim nRowLimit As UInteger
Dim pagePos As SPSearchResultCollectionPosition
Dim returnValue As SPSearchResultCollection
returnValue = instance.SearchDocuments(strSearchTerm, _
nRowLimit, pagePos)
public SPSearchResultCollection SearchDocuments(
string strSearchTerm,
uint nRowLimit,
SPSearchResultCollectionPosition pagePos
)
Parameter
strSearchTerm
Typ: System.StringThe term to search for in the documents.
nRowLimit
Typ: System.UInt32The maximum number of rows of documents returned.
pagePos
Typ: Microsoft.SharePoint.SPSearchResultCollectionPositionThe position in a paged view of the search results.
Rückgabewert
Typ: Microsoft.SharePoint.SPSearchResultCollection
The search results.
Hinweise
This method requires that Microsoft SQL Server be installed on the server and that full-text search is enabled in SharePoint Foundation Central Administration.