Language
Edit

IIncrementalSource<TSource>.GetPagedItemsAsync Method

Definition

This method is invoked every time the view need to show more items. Retrieves items based on pageIndex and pageSize arguments.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TSource>> GetPagedItemsAsync(int pageIndex, int pageSize, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPagedItemsAsync : int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'Source>>
Public Function GetPagedItemsAsync (pageIndex As Integer, pageSize As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TSource))

Parameters

pageIndex
Int32

The zero-based index of the page that corresponds to the items to retrieve.

pageSize
Int32

The number of TSource items to retrieve for the specified pageIndex.

cancellationToken
CancellationToken

Used to propagate notification that operation should be canceled.

Returns

Task<IEnumerable<TSource>>

Returns a collection of TSource.

Applies to