sdk/dotnet/src/Microsoft.Datasync.Client/Table/RemoteTable.generic.cs
/// <summary>
/// Gets a single page of items produced as a result of a query against the server.
/// </summary>
/// <param name="query">The query string to send with the first request to the service.</param>
/// <param name="nextLink">The link to the next page of items (for subsequent requests).</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns a page of items when complete.</returns>
Gets a single page of items produced as a result of a query against the server.
Gets a single page of items produced as a result of a query against the server .
internal async Task<Page<U>> GetNextPageAsync<U>(string query, string nextLink, CancellationToken cancellationToken = default)
        {
            Page<JToken> json = await base.GetNextPageAsync(query, nextLink, cancellationToken).ConfigureAwait(false);
            Page<U> result = new() { Count = json.Count, NextLink = json.NextLink };
            result.Items = json.Items?.Select(item => ServiceClient.Serializer.Deserialize<U>(item));
            return result;
        }
internal async Task < Page < U > > GetNextPageAsync < U > ( string query , string nextLink , CancellationToken cancellationToken = default ) { Page < JToken > json = await base . GetNextPageAsync ( query , nextLink , cancellationToken ) . ConfigureAwait ( false ) ; Page < U > result = new ( ) { Count = json . Count , NextLink = json . NextLink } ; result . Items = json . Items ? . Select ( item => ServiceClient . Serializer . Deserialize < U > ( item ) ) ; return result ; }
Gets a single page of items produced as a result of a query against the server.
Gets a single page of items produced as a result of a query against the server .
A task that returns a page of items when complete.
A task that returns a page of items when complete .
query
string
The query string to send with the first request to the service.
The query string to send with the first request to the service .
nextLink
string
The link to the next page of items (for subsequent requests).
The link to the next page of items ( for subsequent requests ) .
cancellationToken
CancellationToken
A  to observe.
A to observe .