次の方法で共有


ReservationsExtensions.CalculateReservationExchange メソッド

定義

ポリシー エラーがない場合に交換の価格を Reservations 計算します。

  • 要求パス/プロバイダー/Microsoft.Capacity/calculateExchange
  • 操作IdCalculateExchange_Post
public static Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.CalculateExchangeResult> CalculateReservationExchange (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, Azure.ResourceManager.Reservations.Models.CalculateExchangeContent content, System.Threading.CancellationToken cancellationToken = default);
static member CalculateReservationExchange : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.CalculateExchangeContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.CalculateExchangeResult>
<Extension()>
Public Function CalculateReservationExchange (tenantResource As TenantResource, waitUntil As WaitUntil, content As CalculateExchangeContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CalculateExchangeResult)

パラメーター

tenantResource
TenantResource

TenantResourceメソッドが実行するインスタンス。

waitUntil
WaitUntil

Completed メソッドがサービスで実行時間の長い操作が完了するまで戻るのを待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

content
CalculateExchangeContent

実行する必要がある購入と払い戻しを含む要求。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

content が null です。

適用対象