CrawlRuleCollection.SetPriority 方法 (Microsoft.Office.Server.Search.Administration)
Sets the priority for a crawl rule.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
语法
声明
Public Sub SetPriority ( _
rule As CrawlRule, _
priority As Integer _
)
用法
Dim instance As CrawlRuleCollection
Dim rule As CrawlRule
Dim priority As Integer
instance.SetPriority(rule, priority)
public void SetPriority (
CrawlRule rule,
int priority
)
参数
- 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.
备注
The priority setting is the order in which the crawl rules are executed by the 企业级搜索 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 企业级搜索 Administration object model, see 定义爬网规则和文件类型 and Getting Started with the Search Administration Object Model.
另请参阅
参考
CrawlRuleCollection 类
CrawlRuleCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间