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

ServicesOperationsExtensions.BeginCreateOrUpdateAsync 方法

定义

创建或更新 Service Fabric 服务资源。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceFabric.Models.ServiceResource> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.ServiceFabric.IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, Microsoft.Azure.Management.ServiceFabric.Models.ServiceResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.ServiceFabric.IServicesOperations * string * string * string * string * Microsoft.Azure.Management.ServiceFabric.Models.ServiceResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ServiceFabric.Models.ServiceResource>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IServicesOperations, resourceGroupName As String, clusterName As String, applicationName As String, serviceName As String, parameters As ServiceResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServiceResource)

参数

operations
IServicesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

clusterName
String

群集资源的名称。

applicationName
String

应用程序资源的名称。

serviceName
String

服务资源的名称,格式为 {applicationName}~{serviceName}。

parameters
ServiceResource

服务资源。

cancellationToken
CancellationToken

取消标记。

返回

注解

创建或更新具有指定名称的 Service Fabric 服务资源。

适用于