Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / C1FilterDataCollection<T> Class / ReplaceAsync Method
The index.
The item.
The cancellation token.

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

    Parameters

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