DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / InsertRangeAsync<T> Method
The data collection.
The index where the item will be inserted.
The items to be inserted.
The cancellation token.

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

    Parameters

    dataCollection
    The data collection.
    index
    The index where the item will be inserted.
    items
    The items to be inserted.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also