Compartilhar via


WorkloadGroupCollection.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.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}
  • Operação IdWorkloadGroups_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.WorkloadGroupResource>> GetIfExistsAsync (string workloadGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.WorkloadGroupResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Sql.WorkloadGroupResource>>
Public Overridable Function GetIfExistsAsync (workloadGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of WorkloadGroupResource))

Parâmetros

workloadGroupName
String

O nome do grupo de carga de trabalho.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

workloadGroupName é nulo.

Aplica-se a