Partager via


CrawlRule.Test, méthode (Microsoft.Office.Server.Search.Administration)

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

Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)

Syntaxe

'Déclaration
Public Function Test ( _
    url As String _
) As Boolean
'Utilisation
Dim instance As CrawlRule
Dim url As String
Dim returnValue As Boolean

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

Paramètres

  • url
    A string that specifies the URL to test.

Valeur de retour

true if the specified URL triggered the crawl rule; otherwise, false.

Remarques

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

Voir aussi

Référence

CrawlRule, classe
Membres CrawlRule
Microsoft.Office.Server.Search.Administration, espace de noms