DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / ReplaceRangeAsync<T> Method
The data collection.
The index.
The items.
The cancellation token.

In This Topic
    ReplaceRangeAsync<T> Method (IDataCollectionEx)
    In This Topic
    Replaces the items at the specified index by the specified items.
    Syntax
    'Declaration
     
    Public Shared Function ReplaceRangeAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal startingIndex As Integer, _
       ByVal items As IEnumerable(Of T), _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task
    public static Task ReplaceRangeAsync<T>( 
       IDataCollection<T> dataCollection,
       int startingIndex,
       IEnumerable<T> items,
       CancellationToken cancellationToken
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    startingIndex
    The index.
    items
    The items.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also