Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / AddAsync Method / AddAsync<T>(IDataCollection<T>,T,CancellationToken) Method
The data collection.
The item to be added.
The cancellation token.

In This Topic
    AddAsync<T>(IDataCollection<T>,T,CancellationToken) Method
    In This Topic
    Adds the specified item to the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function AddAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal item As T, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task(Of Integer)

    Parameters

    dataCollection
    The data collection.
    item
    The item to be added.
    cancellationToken
    The cancellation token.

    Type Parameters

    T
    See Also