[]
        
(Showing Draft Content)

C1.DataCollection.AdoNet.C1AdoNetCursorDataCollection-1.GetPageAsync

GetPageAsync Method

GetPageAsync(int, bool, 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 override Task<Tuple<bool, IReadOnlyList<T>>> GetPageAsync(int startingIndex, bool pageToken, int? count = null, IReadOnlyList<SortDescription>? sortDescriptions = null, FilterExpression? filterExpression = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int startingIndex

The index where the returned items will be inserted.

bool pageToken

The token of the requesting page, pass null if no pages had been requested so far.

int? count

The desired 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<bool, IReadOnlyList<T>>>

A tuple containing the items and a token to the next page.

Overrides