Share via


CrawlHistory.GetLastCompletedCrawlHistory Method

NOTE: This API is now obsolete.

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
<ObsoleteAttribute("This method is deprecated now.")> _
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)
[ObsoleteAttribute("This method is deprecated now.")]
public DataTable GetLastCompletedCrawlHistory(
    int contentSourceID
)

Parameters

  • contentSourceID
    Type: System.Int32

    The content source identifier crawl log filter property. 

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.

See Also

Reference

CrawlHistory Class

CrawlHistory Members

Microsoft.Office.Server.Search.Administration Namespace