Compartir a través de


: CrawlRuleCollection (Clase) (Microsoft.Office.Server.Search.Administration)

Represents a collection of CrawlRule objects.

Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)

Sintaxis

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

Comentarios

For more information about crawl rules and the new Enterprise Search Administration object model, see Definición de reglas de rastreo y tipos de archivo 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.

Jerarquía de herencia

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

Seguridad de subprocesos

Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.

Vea también

Referencia

CrawlRuleCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)