Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IPagedEnumerable<T> 接口

定义

公开分页集合的枚举器。 这些枚举器支持对指定类型的分页集合进行简单迭代。

分页集合由对 Batch 服务的一个或多个调用提供支持。
其中每个调用都可以返回大小可变的数据页,然后由枚举器使用。

public interface IPagedEnumerable<T> : System.Collections.Generic.IEnumerable<T>
type IPagedEnumerable<'T> = interface
    interface seq<'T>
    interface IEnumerable
Public Interface IPagedEnumerable(Of T)
Implements IEnumerable(Of T)

类型参数

T

要枚举的对象的类型。

实现

方法

GetPagedEnumerator()

返回循环访问分页集合的异步枚举器。

扩展方法

ForEachAsync<T>(IPagedEnumerable<T>, Action<T>, CancellationToken)

循环访问序列 IPagedEnumerable<T> ,为每个元素调用同步委托。

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,CancellationToken,Task>, CancellationToken)

循环访问序列 IPagedEnumerable<T> ,为每个元素调用异步委托。

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,Task>, CancellationToken)

循环访问序列 IPagedEnumerable<T> ,为每个元素调用异步委托。

ToListAsync<T>(IPagedEnumerable<T>, CancellationToken)

IPagedEnumerable<T> 创建一个 List<T>

适用于