[]
        
(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?
Public Shared Function RemoveRangeAsync(Of T As Class)(dataCollection As IDataCollection(Of T), startingIndex As Integer, count As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task
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