DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / InsertAsync Method / InsertAsync<T>(IDataCollection<T>,Int32,T) Method
The data collection.
The index where the item will be inserted.
The item to be inserted.

In This Topic
    InsertAsync<T>(IDataCollection<T>,Int32,T) Method
    In This Topic
    Inserts the specified item at the specified index in the collection.
    Syntax
    'Declaration
     
    Public Overloads Shared Function InsertAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal index As Integer, _
       ByVal item As T _
    ) As Task(Of Integer)
    public static Task<int> InsertAsync<T>( 
       IDataCollection<T> dataCollection,
       int index,
       T item
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    index
    The index where the item will be inserted.
    item
    The item to be inserted.

    Type Parameters

    T
    See Also