DataCollection | ComponentOne
C1.DataCollection.SignalR.Client Assembly / C1.DataCollection.SignalR.Client Namespace / C1ProxyDataCollection<T> Class / GetPageAsync Method
The index of the requesting page.
The index where the returned items will be inserted.
The number of items to be returned.
The sort descriptions.
The filter expression.
Cancellation token.

In This Topic
    GetPageAsync Method (C1ProxyDataCollection<T>)
    In This Topic
    When overridden in an inherited class it returns the items in the page as well as a token to the next page.
    Syntax
    'Declaration
     
    Protected Overrides Function GetPageAsync( _
       ByVal pageIndex As Integer, _
       ByVal startingIndex As Integer, _
       ByVal count As Integer, _
       Optional ByVal sortDescriptions As IReadOnlyList(Of SortDescription), _
       Optional ByVal filterExpression As FilterExpression, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task(Of Tuple(Of Integer,IReadOnlyList(Of T)))

    Parameters

    pageIndex
    The index of the requesting page.
    startingIndex
    The index where the returned items will be inserted.
    count
    The number of items to be returned.
    sortDescriptions
    The sort descriptions.
    filterExpression
    The filter expression.
    cancellationToken
    Cancellation token.

    Return Value

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