CrawlRuleCollection 类 (Microsoft.Office.Server.Search.Administration)
Represents a collection of CrawlRule objects.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
语法
声明
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class CrawlRuleCollection
Implements IEnumerable
用法
Dim instance As CrawlRuleCollection
[DefaultMemberAttribute("Item")]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)]
public sealed class CrawlRuleCollection : IEnumerable
备注
For more information about crawl rules and the new 企业级搜索 Administration object model, see 定义爬网规则和文件类型 and Getting Started with the Search Administration Object Model.
Use the CrawlRules property of the Content class to get the collection of crawl rules for a Shared Service Provider.
To add a new crawl rule to the collection, use the Create method of the CrawlRuleCollection class.
To delete a crawl rule, use the Delete method of the CrawlRule class.
Use an indexer to return a CrawlRule object from the CrawlRuleCollection class. For example, assuming the collection is assigned to a variable named sspCrawlRules, use sspCrawlRules[index] in Microsoft Visual C# or sspCrawlRules(index) in Microsoft Visual Basic, where index is an integer representing the crawl rule priority, or a string containing the crawl rule path.
继承层次结构
System.Object
Microsoft.Office.Server.Search.Administration.CrawlRuleCollection
线程安全性
此类型的任何公共静态(在 Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。
另请参阅
参考
CrawlRuleCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间