DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / MoveRangeAsync<T> Method
The data collection.
From index.
The number of items to be moved.
To index.
The cancellation token.

In This Topic
    MoveRangeAsync<T> Method (IDataCollectionEx)
    In This Topic
    Moves the items specified by fromIndex and count to the new toIndex position.
    Syntax
    'Declaration
     
    Public Shared Function MoveRangeAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal fromIndex As Integer, _
       ByVal count As Integer, _
       ByVal toIndex As Integer, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task
    public static Task MoveRangeAsync<T>( 
       IDataCollection<T> dataCollection,
       int fromIndex,
       int count,
       int toIndex,
       CancellationToken cancellationToken
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    fromIndex
    From index.
    count
    The number of items to be moved.
    toIndex
    To index.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also