Partilhar via


AzurePowerShellCredential.GetTokenAsync Método

Definição

Obtém um token de acesso de Azure PowerShell, usando o token de acesso para autenticar. Essa ID de método chamada por clientes do SDK do Azure.

public override System.Threading.Tasks.ValueTask<Azure.Core.AccessToken> GetTokenAsync (Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = default);
override this.GetTokenAsync : Azure.Core.TokenRequestContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Core.AccessToken>
Public Overrides Function GetTokenAsync (requestContext As TokenRequestContext, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of AccessToken)

Parâmetros

requestContext
TokenRequestContext
cancellationToken
CancellationToken

Retornos

Aplica-se a