Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / AddAsync<T> Method
The data collection.
The item to be added.

In This Topic
    AddAsync<T> Method
    In This Topic
    Adds the specified item to the collection.
    Syntax
    'Declaration
     
    
    Public Shared Function AddAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal item As T _
    ) As Task(Of Integer)
    public static Task<int> AddAsync<T>( 
       IDataCollection<T> dataCollection,
       T item
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    item
    The item to be added.

    Type Parameters

    T
    See Also