CrawlRuleCollection.Test, méthode (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.
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 CrawlRule
'Utilisation
Dim instance As CrawlRuleCollection
Dim url As String
Dim returnValue As CrawlRule
returnValue = instance.Test(url)
public CrawlRule Test (
string url
)
Paramètres
- url
A string that specifies the URL to test.
Valeur de retour
A CrawlRule object.
Remarques
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.
Voir aussi
Référence
CrawlRuleCollection, classe
Membres CrawlRuleCollection
Microsoft.Office.Server.Search.Administration, espace de noms