Share via


AdminComponent.Move Method

Moves the Search administration component to the specified SearchServiceInstance.

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

Syntax

'Declaration
Public Sub Move ( _
    serviceInstance As SearchServiceInstance, _
    indexLocation As String _
)
'Usage
Dim instance As AdminComponent
Dim serviceInstance As SearchServiceInstance
Dim indexLocation As String

instance.Move(serviceInstance, indexLocation)
public void Move(
    SearchServiceInstance serviceInstance,
    string indexLocation
)

Parameters

  • indexLocation
    Type: System.String

    The location of the index partition.

Remarks

This method issues a request to move the AdminComponent to the specified SearchServiceInstance and updates the AdminComponent with the new host in the SearchAdminDatabase. It then periodically checks the AdminComponent state to determine whether the move operation has been completed.

The OperationCanceledException is thrown if the operation fails to move the AdminComponent.

See Also

Reference

AdminComponent Class

AdminComponent Members

Microsoft.Office.Server.Search.Administration Namespace