CrawlRule.Test method

Tests a specified URL to determine if the URL triggered a crawl rule.

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

Syntax

'Declaration
Public Function Test ( _
    url As String _
) As Boolean
'Usage
Dim instance As CrawlRule
Dim url As String
Dim returnValue As Boolean

returnValue = instance.Test(url)
public bool Test(
    string url
)

Parameters

  • url
    Type: System.String

    A string that specifies the URL to test.

Return value

Type: System.Boolean
true if the specified URL triggered the crawl rule; otherwise, false.

Remarks

Use the Test() method of the CrawlRuleCollection class to test the URL against all crawl rules for a Search service application.

See also

Reference

CrawlRule class

CrawlRule members

Microsoft.Office.Server.Search.Administration namespace