CrawlHistory.GetCrawlHistory Method (Int32, DateTime, DateTime, CrawlHistory.CrawlStatus)
NOTE: This API is now obsolete.
Retrieves all the crawl history records up to a specified number, from within a specified time window, and for crawls with a specified status.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<ObsoleteAttribute("This method is deprecated now.")> _
Public Function GetCrawlHistory ( _
maxRecords As Integer, _
beginTime As DateTime, _
endTime As DateTime, _
crawlStat As CrawlHistory.CrawlStatus _
) As DataTable
'Usage
Dim instance As CrawlHistory
Dim maxRecords As Integer
Dim beginTime As DateTime
Dim endTime As DateTime
Dim crawlStat As CrawlHistory.CrawlStatus
Dim returnValue As DataTable
returnValue = instance.GetCrawlHistory(maxRecords, _
beginTime, endTime, crawlStat)
[ObsoleteAttribute("This method is deprecated now.")]
public DataTable GetCrawlHistory(
int maxRecords,
DateTime beginTime,
DateTime endTime,
CrawlHistory.CrawlStatus crawlStat
)
Parameters
maxRecords
Type: System.Int32The limit for the number of records in the result set. Accepts int.MinValue instead of NULL.
beginTime
Type: System.DateTimeBeginning of time window for filtering the result set. Accepts DateTime.MinValue instead of NULL.
endTime
Type: System.DateTimeEnd of time window for filtering the result set. Accepts DateTime.MinValue instead of NULL.
crawlStat
Type: Microsoft.Office.Server.Search.Administration.CrawlHistory.CrawlStatusFilter result set based on the CrawlHistory.CrawlStatus enumeration. Accepts NONE instead of NULL.
Return Value
Type: System.Data.DataTable
A 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.