Share via


CrawlLog.GetCrawlHistory method

Get per-crawl statistics for the most recent n crawls, for the specified content source. If a negative number is supplied for the content source, crawls will be obtained for all content sources.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function GetCrawlHistory ( _
    numberOfCrawls As Integer, _
    contentSourceID As Integer _
) As DataTable
'Usage
Dim instance As CrawlLog
Dim numberOfCrawls As Integer
Dim contentSourceID As Integer
Dim returnValue As DataTable

returnValue = instance.GetCrawlHistory(numberOfCrawls, _
    contentSourceID)
public DataTable GetCrawlHistory(
    int numberOfCrawls,
    int contentSourceID
)

Parameters

  • numberOfCrawls
    Type: System.Int32

    Supplies the maximum number of crawls to obtain.

  • contentSourceID
    Type: System.Int32

    Supplies the content source ID. If a negative value is supplied, crawls for all content sources will be obtained.

Return value

Type: System.Data.DataTable
Returns a DataTable containing per-crawl statistics for the specified number of crawls, for the supplied content source.

See also

Reference

CrawlLog class

CrawlLog members

Microsoft.Office.Server.Search.Administration namespace