[]
This method is called when an item is removed from the collection.
[UnconditionalSuppressMessage("Trimming", "IL2072", Justification = "The properties of the items can not be trimmed since they are generated at runtime.")]
protected override Task RemoveAsyncOverride(int index, CancellationToken cancellationToken)
<UnconditionalSuppressMessage("Trimming", "IL2072", Justification:="The properties of the items can not be trimmed since they are generated at runtime.")>
Protected Overrides Function RemoveAsyncOverride(index As Integer, cancellationToken As CancellationToken) As Task
| Type | Name | Description |
|---|---|---|
| int | index | The index of the removed item. |
| CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| Task |
CanRemove(int) must return true to enable this method.