Partager via


CrawlHistory.GetCrawlHistory, méthode (Int32, DateTime, DateTime, CrawlHistory.CrawlStatus) (Microsoft.Office.Server.Search.Administration)

Retrieves all the crawl history records up to a specified number, from within a specified time window, and for crawls with a specified status.

Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)

Syntaxe

'Déclaration
Public Function GetCrawlHistory ( _
    maxRecords As Integer, _
    beginTime As DateTime, _
    endTime As DateTime, _
    crawlStat As CrawlStatus _
) As DataTable
'Utilisation
Dim instance As CrawlHistory
Dim maxRecords As Integer
Dim beginTime As DateTime
Dim endTime As DateTime
Dim crawlStat As CrawlStatus
Dim returnValue As DataTable

returnValue = instance.GetCrawlHistory(maxRecords, beginTime, endTime, crawlStat)
public DataTable GetCrawlHistory (
    int maxRecords,
    DateTime beginTime,
    DateTime endTime,
    CrawlStatus crawlStat
)

Paramètres

  • maxRecords
    The limit for the number of records in the result set. Accepts int.MinValue instead of NULL.
  • beginTime
    Beginning of time window for filtering the result set. Accepts DateTime.MinValue instead of NULL.
  • endTime
    End of time window for filtering the result set. Accepts DateTime.MinValue instead of NULL.

Valeur de retour

A DataTableT:System.Data.DataTable object with a column that represents the following columns in the database, sorted in chronological order: CrawlID, ContentSourceID, ProjectID, CrawlType, RequestTime, Status, StartTime, EndTime, SuccessCount, ErrorCount, WarningCount.

Voir aussi

Référence

CrawlHistory, classe
Membres CrawlHistory
Microsoft.Office.Server.Search.Administration, espace de noms