DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / ISupportEditing<T> Interface / ReplaceAsync Method
The index.
The item.
The cancellation token.

In This Topic
    ReplaceAsync Method (ISupportEditing<T>)
    In This Topic
    Replaces the item at the specified index by the specified item.
    Syntax
    'Declaration
     
    Function ReplaceAsync( _
       ByVal index As Integer, _
       ByVal item As T, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task(Of Integer)
    Task<int> ReplaceAsync( 
       int index,
       T item,
       CancellationToken cancellationToken
    )

    Parameters

    index
    The index.
    item
    The item.
    cancellationToken
    The cancellation token.
    See Also