Partager via


CrawlRuleCollection, classe (Microsoft.Office.Server.Search.Administration)

Represents a collection of CrawlRule objects.

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

Syntaxe

'Déclaration
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class CrawlRuleCollection
    Implements IEnumerable
'Utilisation
Dim instance As CrawlRuleCollection
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class CrawlRuleCollection : IEnumerable

Remarques

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.

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.

Hiérarchie d'héritage

System.Object
  Microsoft.Office.Server.Search.Administration.CrawlRuleCollection

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres CrawlRuleCollection
Microsoft.Office.Server.Search.Administration, espace de noms