CrawlMappingCollection Class

Represents a collection of CrawlMapping objects.

Inheritance Hierarchy


Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)


<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class CrawlMappingCollection _
    Implements IEnumerable
Dim instance As CrawlMappingCollection
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class CrawlMappingCollection : IEnumerable


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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


CrawlMappingCollection Members

Microsoft.Office.Server.Search.Administration Namespace