Compartilhar via


SqlServerResource.GetSqlServerAdvisorAsync(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}
  • IdServerAdvisors_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>> GetSqlServerAdvisorAsync (string advisorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSqlServerAdvisorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>>
override this.GetSqlServerAdvisorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlServerAdvisorResource>>
Public Overridable Function GetSqlServerAdvisorAsync (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 era esperado que não estivesse vazio.

advisorName é nulo.

Aplica-se a