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

IRegistries.GetCredentialsAsync(String, String, CancellationToken) 方法

定义

获取指定容器注册表的登录凭据。

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistryCredentials> GetCredentialsAsync (string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCredentialsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistryCredentials>
Public Function GetCredentialsAsync (resourceGroupName As String, registryName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IRegistryCredentials)

参数

resourceGroupName
String

资源组名称。

registryName
String

注册表名称。

cancellationToken
CancellationToken

返回

适用于