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

PaginatedResponseHelper.ForEach<TType> Method

Definition

public static void ForEach<TType> (Func<System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<TType[]>>> getFirstPage, Func<string,System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<TType[]>>> getNextPage, System.Threading.CancellationToken? cancellationToken, Action<TType[]> action);
static member ForEach : Func<System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<'ype[]>>> * Func<string, System.Threading.Tasks.Task<Microsoft.Azure.Commands.ResourceManager.Common.ResponseWithContinuation<'ype[]>>> * Nullable<System.Threading.CancellationToken> * Action<'ype[]> -> unit
Public Sub ForEach(Of TType) (getFirstPage As Func(Of Task(Of ResponseWithContinuation(Of TType()))), getNextPage As Func(Of String, Task(Of ResponseWithContinuation(Of TType()))), cancellationToken As Nullable(Of CancellationToken), action As Action(Of TType()))

Type Parameters

TType

Parameters

getFirstPage
Func<Task<ResponseWithContinuation<TType[]>>>
getNextPage
Func<String,Task<ResponseWithContinuation<TType[]>>>
cancellationToken
Nullable<CancellationToken>
action
Action<TType[]>

Applies to