Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / ReplaceAsync<T> Method
The data collection.
The index.
The item.

In This Topic
    ReplaceAsync<T> Method (IDataCollectionEx)
    In This Topic
    Replaces the item at the specified index by the specified item.
    Syntax
    'Declaration
     
    Public Shared Function ReplaceAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal index As Integer, _
       ByVal item As T _
    ) As Task
    public static Task ReplaceAsync<T>( 
       IDataCollection<T> dataCollection,
       int index,
       T item
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    index
    The index.
    item
    The item.

    Type Parameters

    T
    See Also