Partager via


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

Represents a collection of CrawlMapping 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 CrawlMappingCollection
    Implements IEnumerable
'Utilisation
Dim instance As CrawlMappingCollection
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class CrawlMappingCollection : IEnumerable

Remarques

Use the CrawlMappings property of the Content class to get the collection of crawl mappings for a Shared Service Provider.

To add a new crawl mapping to the collection, use the Create method of the CrawlMappingCollection class.

To delete a crawl mapping, use the Delete method of the CrawlMapping class.

Use an indexer to return a single crawl mapping from the CrawlMappingCollection object. For example, assuming the collection is assigned to a variable named sspCrawlMappings, use sspCrawlMappings[index] in Microsoft Visual C# or sspCrawlMappings(index) in Microsoft Visual Basic, where index is the index number of the crawl mapping in the collection, or a System.Uri object representing the URI for the crawl mapping.

Hiérarchie d'héritage

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

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 CrawlMappingCollection
Microsoft.Office.Server.Search.Administration, espace de noms