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)


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

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


  • 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.


Use the Test() method of the CrawlRuleCollection class to test the URL against all crawl rules for a Shared Service Provider.

See Also


CrawlRule Class

CrawlRule Members

Microsoft.Office.Server.Search.Administration Namespace