[]
        
(Showing Draft Content)

C1.DataCollection.C1VirtualDataCollection-1.GetPageAsync

GetPageAsync Method

GetPageAsync(int, int, int, IReadOnlyList<SortDescription>?, FilterExpression?, CancellationToken)

When overridden in an inherited class it returns the items in the page as well as a token to the next page.

Declaration
protected abstract Task<Tuple<int, IReadOnlyList<T>>> GetPageAsync(int pageIndex, int startingIndex, int count, IReadOnlyList<SortDescription>? sortDescriptions = null, FilterExpression? filterExpression = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int pageIndex

The index of the requesting page.

int startingIndex

The index where the returned items will be inserted.

int count

The number of items to be returned.

IReadOnlyList<SortDescription> sortDescriptions

The sort descriptions.

FilterExpression filterExpression

The filter expression.

CancellationToken cancellationToken

Cancellation token.

Returns
Type Description
Task<Tuple<int, IReadOnlyList<T>>>

A tuple containing the items and a total number of items.