Share via


CrawlComponentCollection.Create Method

Creates a new crawl component associated with the specified crawl database and adds it to the Search service application’s collection of crawl components.

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

Syntax

'Declaration
Public Function Create ( _
    serviceInstance As SearchServiceInstance, _
    indexLocation As String, _
    store As CrawlStore _
) As CrawlComponent
'Usage
Dim instance As CrawlComponentCollection
Dim serviceInstance As SearchServiceInstance
Dim indexLocation As String
Dim store As CrawlStore
Dim returnValue As CrawlComponent

returnValue = instance.Create(serviceInstance, _
    indexLocation, store)
public CrawlComponent Create(
    SearchServiceInstance serviceInstance,
    string indexLocation,
    CrawlStore store
)

Parameters

  • indexLocation
    Type: System.String

    The directory for the index file.

Return Value

Type: Microsoft.Office.Server.Search.Administration.CrawlComponent
The created crawl component.

Remarks

This method creates a crawl component entry in the Search administration database, and then calls the Refresh() method to ensure that this crawl component is available to the Search service application.

See Also

Reference

CrawlComponentCollection Class

CrawlComponentCollection Members

Microsoft.Office.Server.Search.Administration Namespace