/// <summary> /// Lists all of the private endpoint connections in the specified account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='maxresults'> /// The maximum number of items to return in the response. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PrivateEndpointConnection> > ListByBatchAccountAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByBatchAccountWithHttpMessagesAsync(resourceGroupName, accountName, maxresults, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }