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 Shared Service Provider.

See Also

Reference

CrawlRule Class

CrawlRule Members

Microsoft.Office.Server.Search.Administration Namespace