AsyncCollectionResult<T>.GetValuesFromPageAsync(ClientResult) Method

Definition

Gets a collection of the values returned in a page response.

protected abstract System.Collections.Generic.IAsyncEnumerable<T> GetValuesFromPageAsync (System.ClientModel.ClientResult page);
abstract member GetValuesFromPageAsync : System.ClientModel.ClientResult -> System.Collections.Generic.IAsyncEnumerable<'T>
Protected MustOverride Function GetValuesFromPageAsync (page As ClientResult) As IAsyncEnumerable(Of T)

Parameters

page
ClientResult

The service response to obtain the values from.

Returns

A collection of T values read from the response content in page.

Remarks

This method does not take a CancellationToken parameter. AsyncCollectionResult<T> implementations must store the CancellationToken passed to the service method that creates them and pass that token to any async methods called from this method.

Applies to