[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.LoadAsync

LoadAsync Method

LoadAsync<T>(IDataCollection<T>, int?, int?, CancellationToken)

Load the items between the specified indexes.

Declaration
public static Task LoadAsync<T>(this IDataCollection<T> dataCollection, int? fromIndex = null, int? toIndex = null, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int? fromIndex

The starting index, if not specified this will be 0.

int? toIndex

The starting index, if not specified this will be Count.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T