CrawlHistory.GetNDayAvgStats 方法 (Microsoft.Office.Server.Search.Administration)

Returns average statistics for all crawls on a content source from a date that is a specified number of days in the past.

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Public Function GetNDayAvgStats ( _
    cs As ContentSource, _
    crawlType As Integer, _
    numberOfDays As Integer _
) As DataTable
用法
Dim instance As CrawlHistory
Dim cs As ContentSource
Dim crawlType As Integer
Dim numberOfDays As Integer
Dim returnValue As DataTable

returnValue = instance.GetNDayAvgStats(cs, crawlType, numberOfDays)
public DataTable GetNDayAvgStats (
    ContentSource cs,
    int crawlType,
    int numberOfDays
)

参数

  • cs
    The ContentSource object from which you want to retrieve crawl data.
  • crawlType
    Integer value that represents "FULL" (0) or "INCREMENTAL" (1) crawl types.
  • numberOfDays
    Integer value that specifies the number of days in the past for which you want to retrieve crawl data.

返回值

A DataTableT:System.Data.DataTable object with the following columns: DurationAverage, AverageSuccesses, AverageErrors, and AverageWarnings.

另请参阅

参考

CrawlHistory 类
CrawlHistory 成员
Microsoft.Office.Server.Search.Administration 命名空间