MessageFormatterEnumerableTracker.CreateEnumerableProxy<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用者用来构造实现 IAsyncEnumerable<T> 并从远程生成器获取其所有值的代理。
public System.Collections.Generic.IAsyncEnumerable<T> CreateEnumerableProxy<T> (object? handle, System.Collections.Generic.IReadOnlyList<T>? prefetchedItems);
member this.CreateEnumerableProxy : obj * System.Collections.Generic.IReadOnlyList<'T> -> System.Collections.Generic.IAsyncEnumerable<'T>
Public Function CreateEnumerableProxy(Of T) (handle As Object, prefetchedItems As IReadOnlyList(Of T)) As IAsyncEnumerable(Of T)
类型参数
- T
由可枚举生成的值的类型。
参数
- handle
- Object
生成器指定的句柄,用于获取更多值或释放枚举器。 可能 null
表示不会再有值。
- prefetchedItems
- IReadOnlyList<T>
可枚举句柄中包含的项列表。
返回
枚举器。