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

RegistriesOperationsExtensions.CreateAsync 方法

定义

使用指定参数创建容器注册表。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Models.Registry> CreateAsync (this Microsoft.Azure.Management.ContainerRegistry.IRegistriesOperations operations, string resourceGroupName, string registryName, Microsoft.Azure.Management.ContainerRegistry.Models.Registry registry, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.ContainerRegistry.IRegistriesOperations * string * string * Microsoft.Azure.Management.ContainerRegistry.Models.Registry * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Models.Registry>
<Extension()>
Public Function CreateAsync (operations As IRegistriesOperations, resourceGroupName As String, registryName As String, registry As Registry, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Registry)

参数

operations
IRegistriesOperations

此扩展方法的操作组。

resourceGroupName
String

容器注册表所属的资源组的名称。

registryName
String

容器注册表的名称。

registry
Registry

用于创建容器注册表的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于