Share via


CrawlLog.GetCrawledUrls method

NOTE: This API is now obsolete.

Get crawled URLs that match the supplied parameters.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is obsolete and will be removed in future versions.")> _
Public Function GetCrawledUrls ( _
    getCountOnly As Boolean, _
    maxRows As Long, _
    urlQueryString As String, _
    isLike As Boolean, _
    contentSourceID As Integer, _
    errorLevel As Integer, _
    errorID As Integer, _
    startDateTime As DateTime, _
    endDateTime As DateTime _
) As DataTable
'Usage
Dim instance As CrawlLog
Dim getCountOnly As Boolean
Dim maxRows As Long
Dim urlQueryString As String
Dim isLike As Boolean
Dim contentSourceID As Integer
Dim errorLevel As Integer
Dim errorID As Integer
Dim startDateTime As DateTime
Dim endDateTime As DateTime
Dim returnValue As DataTable

returnValue = instance.GetCrawledUrls(getCountOnly, _
    maxRows, urlQueryString, isLike, _
    contentSourceID, errorLevel, errorID, _
    startDateTime, endDateTime)
[ObsoleteAttribute("This method is obsolete and will be removed in future versions.")]
public DataTable GetCrawledUrls(
    bool getCountOnly,
    long maxRows,
    string urlQueryString,
    bool isLike,
    int contentSourceID,
    int errorLevel,
    int errorID,
    DateTime startDateTime,
    DateTime endDateTime
)

Parameters

  • getCountOnly
    Type: System.Boolean

    Supplies a flag indicating that only the count of URLs matching the supplied parameters should be returned. If true, the data table will contain a single row with a column named "DocumentCount", containing the count of documents matching the filters.

  • maxRows
    Type: System.Int64

    Supplies the maximum number of rows to be retrieved. If the supplied value is zero, all rows will be returned.

  • isLike
    Type: System.Boolean

    Supplies a flag indicating that 'urlQueryString' should be used as a prefix to match URLs. If true, all URLs that start with 'urlQueryString' will be returned.

  • contentSourceID
    Type: System.Int32

    Supplies the content source ID. Only URLs with this content source ID will be returned. If a value of -1 is supplied, URLs will not be filtered by content source.

  • errorLevel
    Type: System.Int32

    Supplies the error level. Only URLs with this error level will be returned. If a value of -1 is supplied, URLs will not be filtered by error level. Valid values for this parameter are: -1 Do not filter by error level. 0 Return only successfully crawled URLs. 1 Return URLs that generated a warning when crawled. 2 Return URLs that generated an error when crawled. 3 Return URLs that have been deleted. 4 Return URLs that generated a top level error.

  • errorID
    Type: System.Int32

    Supplies a specific error ID from MSSCrawlErrorList. Only URLs with this error ID will be returned. If -1 is supplied, URLs will not be filtered by error ID.

  • startDateTime
    Type: System.DateTime

    Supplies the start DateTime. Only URLs that have been crawled more recently than this value will be returned. If a value of DateTime.MinValue is supplied, startTime will not be used to filter URLs.

  • endDateTime
    Type: System.DateTime

    Supplies the end DateTime. Only URLs that have been crawled before this value will be returned. If DateTime.MaxValue is supplied, endTime will not be used to filter URLs.

Return value

Type: System.Data.DataTable

See also

Reference

CrawlLog class

CrawlLog members

Microsoft.Office.Server.Search.Administration namespace