Partilhar via


ArmHybridNetworkModelFactory.AzureContainerRegistryScopedTokenCredential Método

Definição

Inicializa uma nova instância do AzureContainerRegistryScopedTokenCredential.

public static Azure.ResourceManager.HybridNetwork.Models.AzureContainerRegistryScopedTokenCredential AzureContainerRegistryScopedTokenCredential (string username = default, string acrToken = default, Uri acrServerUri = default, System.Collections.Generic.IEnumerable<string> repositories = default, DateTimeOffset? expiry = default);
static member AzureContainerRegistryScopedTokenCredential : string * string * Uri * seq<string> * Nullable<DateTimeOffset> -> Azure.ResourceManager.HybridNetwork.Models.AzureContainerRegistryScopedTokenCredential
Public Shared Function AzureContainerRegistryScopedTokenCredential (Optional username As String = Nothing, Optional acrToken As String = Nothing, Optional acrServerUri As Uri = Nothing, Optional repositories As IEnumerable(Of String) = Nothing, Optional expiry As Nullable(Of DateTimeOffset) = Nothing) As AzureContainerRegistryScopedTokenCredential

Parâmetros

username
String

O nome de usuário da credencial.

acrToken
String

O valor da credencial.

acrServerUri
Uri

A URL do servidor Acr.

repositories
IEnumerable<String>

Os repositórios que poderiam ser acessados usando a credencial atual.

expiry
Nullable<DateTimeOffset>

A hora UTC em que a credencial expirará.

Retornos

Uma nova AzureContainerRegistryScopedTokenCredential instância para zombar.

Aplica-se a