[]
Removes the items at the specified index from the collection.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportRangeEditing<>))]
public static Task RemoveRangeAsync<T>(this IDataCollection<T> dataCollection, int startingIndex, int count, CancellationToken cancellationToken = default) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportRangeEditing(Of )))>
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
| 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. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |