共用方式為


ReservationDetailResource.GetAvailableScopesAsync 方法

定義

檢查來自要求的範圍是否對 有效 Reservation

  • 要求路徑/提供者/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes
  • 作業IdReservation_AvailableScopes
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.AvailableScopesProperties>> GetAvailableScopesAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Reservations.Models.AvailableScopesContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAvailableScopesAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.AvailableScopesContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.AvailableScopesProperties>>
override this.GetAvailableScopesAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.AvailableScopesContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.AvailableScopesProperties>>
Public Overridable Function GetAvailableScopesAsync (waitUntil As WaitUntil, content As AvailableScopesContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AvailableScopesProperties))

參數

waitUntil
WaitUntil

Completed 如果 方法應該等候傳回,直到服務上長時間執行的作業完成為止; Started 如果它應該在啟動作業之後傳回,則為 。 如需長時間執行作業的詳細資訊,請參閱 Azure.Core Long-Running作業範例

content
AvailableScopesContent

要檢查資格的範圍。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

content 為 null。

適用於