'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)
public static Task<int> AddAsync<T>( IDataCollection<T> dataCollection, T item, CancellationToken cancellationToken ) where T: class
Parameters
- dataCollection
- The data collection.
- item
- The item to be added.
- cancellationToken
- The cancellation token.
Type Parameters
- T