共用方式為


IRegistries.GetCredentialsAsync(String, String, CancellationToken) Method

Definition

Gets the login credentials for the specified container registry.

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)

Parameters

resourceGroupName
String

The resource group name.

registryName
String

The registry name.

cancellationToken
CancellationToken

Returns

Applies to