AzureServiceTokenProvider.GetAccessTokenAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
Devoluciones
Se aplica 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
Devoluciones
Se aplica 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
Devoluciones
Se aplica 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
Devoluciones
Se aplica a
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.
Azure SDK for .NET