Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / RemoveRangeAsync<T> Method
The data collection.
The index of the items that will be removed.
The number of items to be removed.
The cancellation token.

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

    Parameters

    dataCollection
    The data collection.
    startingIndex
    The index of the items that will be removed.
    count
    The number of items to be removed.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also