Partager via


SqlDatabaseResource.RenameAsync Méthode

Définition

Renomme une base de données.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move
  • Opération IdDatabases_Rename
public virtual System.Threading.Tasks.Task<Azure.Response> RenameAsync (Azure.ResourceManager.Sql.Models.SqlResourceMoveDefinition sqlResourceMoveDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member RenameAsync : Azure.ResourceManager.Sql.Models.SqlResourceMoveDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RenameAsync : Azure.ResourceManager.Sql.Models.SqlResourceMoveDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RenameAsync (sqlResourceMoveDefinition As SqlResourceMoveDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Paramètres

sqlResourceMoveDefinition
SqlResourceMoveDefinition

Définition de déplacement de ressources pour renommer cette base de données.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

sqlResourceMoveDefinition a la valeur null.

S’applique à