Compartilhar via


SqlServerAdvisorCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém um assistente de servidor.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}
  • Operação IdServerAdvisors_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>> GetAsync (string advisorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>>
Public Overridable Function GetAsync (advisorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlServerAdvisorResource))

Parâmetros

advisorName
String

O nome do Assistente do Servidor.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

advisorName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

advisorName é nulo.

Aplica-se a