IIncrementalSource<TSource>.GetPagedItemsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns a collection of TSource.