AzureServiceTokenProvider.GetAccessTokenAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
GetAccessTokenAsync(String, String)
public virtual System.Threading.Tasks.Task<string> GetAccessTokenAsync (string resource, string tenantId);
abstract member GetAccessTokenAsync : string * string -> System.Threading.Tasks.Task<string>
override this.GetAccessTokenAsync : string * string -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAccessTokenAsync (resource As String, tenantId As String) As Task(Of String)
Parâmetros
- resource
- String
- tenantId
- String
Retornos
Aplica-se a
GetAccessTokenAsync(String, Boolean, CancellationToken)
public virtual System.Threading.Tasks.Task<string> GetAccessTokenAsync (string resource, bool forceRefresh, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAccessTokenAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetAccessTokenAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAccessTokenAsync (resource As String, forceRefresh As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parâmetros
- resource
- String
- forceRefresh
- Boolean
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
GetAccessTokenAsync(String, String, CancellationToken)
public virtual System.Threading.Tasks.Task<string> GetAccessTokenAsync (string resource, string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAccessTokenAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetAccessTokenAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAccessTokenAsync (resource As String, Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parâmetros
- resource
- String
- tenantId
- String
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
GetAccessTokenAsync(String, String, Boolean, CancellationToken)
public virtual System.Threading.Tasks.Task<string> GetAccessTokenAsync (string resource, string tenantId, bool forceRefresh, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAccessTokenAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetAccessTokenAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAccessTokenAsync (resource As String, tenantId As String, forceRefresh As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parâmetros
- resource
- String
- tenantId
- String
- forceRefresh
- Boolean
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET