CrawlRuleCollection.Test 方法 (Microsoft.Office.Server.Search.Administration)

Tests a specified URL against all crawl rules in the collection, and returns a CrawlRule object representing the crawl rule that was triggered for the URL.

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

语法

声明
Public Function Test ( _
    url As String _
) As CrawlRule
用法
Dim instance As CrawlRuleCollection
Dim url As String
Dim returnValue As CrawlRule

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

参数

  • url
    A string that specifies the URL to test.

返回值

A CrawlRule object.

备注

If no crawl rules are triggered by the specified URL, the Test method returns null.

Use the Test method of the CrawlRule class to test the URL against a single crawl rule.

另请参阅

参考

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