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

PoolOperationsExtensions.CreateAsync 方法

定义

在指定的帐户内创建新池。

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

参数

operations
IPoolOperations

此扩展方法的操作组。

resourceGroupName
String

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

accountName
String

Batch 帐户的名称。

poolName
String

池名称。 这在帐户中必须是唯一的。

parameters
Pool

用于创建池的其他参数。

ifMatch
String

实体状态 (ETag) 要更新的池版本。 仅当池已存在时,值“*”才可用于应用操作。 如果省略,将始终应用此操作。

ifNoneMatch
String

设置为“*”以允许创建新池,但阻止更新现有池。 其他值将被忽略。

cancellationToken
CancellationToken

取消标记。

返回

适用于