Partilhar via


ScalingPlanCollection.GetIfExistsAsync(String, CancellationToken) Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operação IdScalingPlans_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource>> GetIfExistsAsync (string scalingPlanName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource>>
Public Overridable Function GetIfExistsAsync (scalingPlanName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ScalingPlanResource))

Parâmetros

scalingPlanName
String

O nome do plano de dimensionamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

scalingPlanName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

scalingPlanName é nulo.

Aplica-se a