共用方式為


DatabasesOperationsExtensions.Rename Method

Definition

Overloads

Rename(IDatabasesOperations, String, String, String, ResourceMoveDefinition)

Renames a database.

Rename(IDatabasesOperations, String, String, String, String)

Renames a database.

Rename(IDatabasesOperations, String, String, String, ResourceMoveDefinition)

Renames a database.

public static void Rename (this Microsoft.Azure.Management.Sql.IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.Management.Sql.Models.ResourceMoveDefinition parameters);
static member Rename : Microsoft.Azure.Management.Sql.IDatabasesOperations * string * string * string * Microsoft.Azure.Management.Sql.Models.ResourceMoveDefinition -> unit
<Extension()>
Public Sub Rename (operations As IDatabasesOperations, resourceGroupName As String, serverName As String, databaseName As String, parameters As ResourceMoveDefinition)

Parameters

operations
IDatabasesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName
String

The name of the server.

databaseName
String

The name of the database to rename.

parameters
ResourceMoveDefinition

The resource move definition for renaming this database.

Applies to

Rename(IDatabasesOperations, String, String, String, String)

Renames a database.

public static void Rename (this Microsoft.Azure.Management.Sql.IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string newName);
static member Rename : Microsoft.Azure.Management.Sql.IDatabasesOperations * string * string * string * string -> unit
<Extension()>
Public Sub Rename (operations As IDatabasesOperations, resourceGroupName As String, serverName As String, databaseName As String, newName As String)

Parameters

operations
IDatabasesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName
String

The name of the server.

databaseName
String

The name of the database to rename.

newName
String

The new name that the database should be renamed to.

Applies to