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

ApplicationOperationsExtensions.CreateAsync 方法

定义

将应用程序添加到指定的 Batch 帐户。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.Application> CreateAsync (this Microsoft.Azure.Management.Batch.IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Microsoft.Azure.Management.Batch.Models.Application parameters = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Batch.IApplicationOperations * string * string * string * Microsoft.Azure.Management.Batch.Models.Application * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.Application>
<Extension()>
Public Function CreateAsync (operations As IApplicationOperations, resourceGroupName As String, accountName As String, applicationName As String, Optional parameters As Application = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Application)

参数

operations
IApplicationOperations

此扩展方法的操作组。

resourceGroupName
String

包含 Batch 帐户的资源组的名称。

accountName
String

Batch 帐户的名称。

applicationName
String

应用程序的名称。 这在帐户中必须是唯一的。

parameters
Application

请求的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于