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

LoadTestingExtensions.GetLoadTestingQuotaAsync Method

Definition

Get the available quota for a quota bucket per region per subscription. <item> Mocking. To mock this method, please mock GetLoadTestingQuotaAsync(AzureLocation, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingQuotaResource>> GetLoadTestingQuotaAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string quotaBucketName, System.Threading.CancellationToken cancellationToken = default);
static member GetLoadTestingQuotaAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingQuotaResource>>
<Extension()>
Public Function GetLoadTestingQuotaAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, quotaBucketName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LoadTestingQuotaResource))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The location for the resource.

quotaBucketName
String

The quota name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

quotaBucketName is an empty string, and was expected to be non-empty.

subscriptionResource is null.

Applies to