你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DatabasesOperationsExtensions.BeginCreateOrUpdateAsync 方法

定义

创建新数据库或更新现有数据库。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Database> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.MySQL.FlexibleServers.IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Database parameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.MySQL.FlexibleServers.IDatabasesOperations * string * string * string * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Database * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.MySQL.FlexibleServers.Models.Database>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IDatabasesOperations, resourceGroupName As String, serverName As String, databaseName As String, parameters As Database, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Database)

参数

operations
IDatabasesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

serverName
String

服务器的名称。

databaseName
String

数据库的名称。

parameters
Database

创建或更新数据库所需的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于