CrawlHistory.GetLastCompletedCrawlHistory Method
Retrieves the last completed crawl history record for a specified content source.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetLastCompletedCrawlHistory ( _
contentSourceID As Integer _
) As DataTable
'Usage
Dim instance As CrawlHistory
Dim contentSourceID As Integer
Dim returnValue As DataTable
returnValue = instance.GetLastCompletedCrawlHistory(contentSourceID)
public DataTable GetLastCompletedCrawlHistory(
int contentSourceID
)
Parameters
- contentSourceID
Type: System.Int32
The content source ID crawl log filter property.
Return Value
Type: System.Data.DataTable
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.