[]
        
(Showing Draft Content)

C1.DataCollection.C1VirtualDataCollection-1.ReplaceAsyncOverride

ReplaceAsyncOverride Method

ReplaceAsyncOverride(int, T, CancellationToken)

This method is called when an item is replaced in the collection.

Declaration
protected virtual Task<int> ReplaceAsyncOverride(int index, T item, CancellationToken cancellationToken)
Parameters
Type Name Description
int index

The index of the replaced item.

T item

The replaced item.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<int>
Remarks

CanReplace(int, T) must return true to enable this method.