Udostępnij przez


PSHttpResponseExtensions.PaginateAsync Method

Definition

Fetch all data from a paginated AzureOperationResponse by following each nextLink until reaching the max limit, and combine the results into one PSHttpResponse.

public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Profile.Models.PSHttpResponse> PaginateAsync(this Microsoft.Rest.Azure.AzureOperationResponse<string> response, Microsoft.Azure.Internal.Common.IAzureRestClient serviceClient, string apiVersion, string pageableItemName = "value", string nextLinkName = "nextLink", int maxPageSize = 2147483647);
static member PaginateAsync : Microsoft.Rest.Azure.AzureOperationResponse<string> * Microsoft.Azure.Internal.Common.IAzureRestClient * string * string * string * int -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Profile.Models.PSHttpResponse>
<Extension()>
Public Function PaginateAsync (response As AzureOperationResponse(Of String), serviceClient As IAzureRestClient, apiVersion As String, Optional pageableItemName As String = "value", Optional nextLinkName As String = "nextLink", Optional maxPageSize As Integer = 2147483647) As Task(Of PSHttpResponse)

Parameters

serviceClient
IAzureRestClient
apiVersion
String
pageableItemName
String
nextLinkName
String
maxPageSize
Int32

Returns

Applies to