Share via


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

CloudServicesOperationsExtensions.BeginCreateOrUpdateAsync 方法

定义

创建或更新云服务。 请注意,某些属性只能在创建云服务期间设置。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CloudService> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ICloudServicesOperations operations, string resourceGroupName, string cloudServiceName, Microsoft.Azure.Management.Compute.Models.CloudService parameters = default, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ICloudServicesOperations * string * string * Microsoft.Azure.Management.Compute.Models.CloudService * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CloudService>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As ICloudServicesOperations, resourceGroupName As String, cloudServiceName As String, Optional parameters As CloudService = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CloudService)

参数

operations
ICloudServicesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

cloudServiceName
String

云服务的名称。

parameters
CloudService

云服务对象。

cancellationToken
CancellationToken

取消标记。

返回

适用于