[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.RemoveRangeAsync

RemoveRangeAsync Method

RemoveRangeAsync<T>(IDataCollection<T>, int, int, CancellationToken)

Removes the items at the specified index from the collection.

Declaration
public static Task RemoveRangeAsync<T>(this IDataCollection<T> dataCollection, int startingIndex, int count, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int startingIndex

The index of the items that will be removed.

int count

The number of items to be removed.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T