CrawlRuleCollection.SetPriority, méthode (Microsoft.Office.Server.Search.Administration)
Sets the priority for 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 Sub SetPriority ( _
rule As CrawlRule, _
priority As Integer _
)
'Utilisation
Dim instance As CrawlRuleCollection
Dim rule As CrawlRule
Dim priority As Integer
instance.SetPriority(rule, priority)
public void SetPriority (
CrawlRule rule,
int priority
)
Paramètres
- rule
The CrawlRule object to set the priority for.
- priority
A 32-bit integer between 1 and the value of the Count property of the CrawlRuleCollection object, that specifies the priority setting for the crawl rule.
Remarques
The priority setting is the order in which the crawl rules are executed by the Recherche de contenu d'entreprise index engine, so the value for this setting, represented by the Priority property of the CrawlRule class, is different for each crawl rule. When the priority setting for a crawl rule in the collection is updated by using the SetPriority method, the remaining crawl rules with priority settings greater than or equal to the new setting also have their priority settings adjusted.
For more information about crawl rules and the new Recherche de contenu d'entreprise Administration object model, see Définition de règles d'analyse et types de fichiers and Getting Started with the Search Administration Object Model.
Voir aussi
Référence
CrawlRuleCollection, classe
Membres CrawlRuleCollection
Microsoft.Office.Server.Search.Administration, espace de noms