Partager via


SqlDatabaseResource.GetSqlDatabaseAdvisorAsync Méthode

Définition

Obtient un conseiller de base de données.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • IdDatabaseAdvisors_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlDatabaseAdvisorResource>> GetSqlDatabaseAdvisorAsync (string advisorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSqlDatabaseAdvisorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlDatabaseAdvisorResource>>
override this.GetSqlDatabaseAdvisorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlDatabaseAdvisorResource>>
Public Overridable Function GetSqlDatabaseAdvisorAsync (advisorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlDatabaseAdvisorResource))

Paramètres

advisorName
String

Nom du Conseiller de base de données.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

advisorName est une chaîne vide et devait être non vide.

advisorName a la valeur null.

S’applique à