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

ServersOperationsExtensions.CreateAsync 方法

定义

创建新服务器或更新现有服务器。 更新操作将覆盖现有服务器。

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

参数

operations
IServersOperations

此扩展方法的操作组。

resourceGroupName
String

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

serverName
String

服务器的名称。

parameters
ServerForCreate

创建或更新服务器所需的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于