DataCollection | ComponentOne
C1.DataCollection.AdoNet Assembly / C1.DataCollection.AdoNet Namespace / C1AdoNetVirtualDataCollection Class / MoveAsyncOverride Method
The original index of the item.
The destination index of the item.
The cancellation token.

In This Topic
    MoveAsyncOverride Method (C1AdoNetVirtualDataCollection)
    In This Topic
    This method is called when an item is moved in the collection.
    Syntax
    'Declaration
     
    Protected Overridable Function MoveAsyncOverride( _
       ByVal fromIndex As Integer, _
       ByVal toIndex As Integer, _
       ByVal cancellationToken As CancellationToken _
    ) As Task
    protected virtual Task MoveAsyncOverride( 
       int fromIndex,
       int toIndex,
       CancellationToken cancellationToken
    )

    Parameters

    fromIndex
    The original index of the item.
    toIndex
    The destination index of the item.
    cancellationToken
    The cancellation token.
    Remarks
    CanMove must return true to enable this method.
    See Also