Lenguaje

ClientApplicationBase.GetAccountAsync Método

Definición

Sobrecargas

Nombre Description
GetAccountAsync(String)

Obtenga por IAccount su identificador entre las cuentas disponibles en la caché de tokens.

GetAccountAsync(String, CancellationToken)

Obtenga por IAccount su identificador entre las cuentas disponibles en la caché de tokens.

GetAccountAsync(String)

Obtenga por IAccount su identificador entre las cuentas disponibles en la caché de tokens.

public System.Threading.Tasks.Task<Microsoft.Identity.Client.IAccount> GetAccountAsync(string accountId);
abstract member GetAccountAsync : string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.IAccount>
override this.GetAccountAsync : string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.IAccount>
Public Function GetAccountAsync (accountId As String) As Task(Of IAccount)

Parámetros

accountId
String

Identificador de cuenta. El identificador suele ser el valor de la Identifier propiedad de AccountId. Normalmente, se obtiene el identificador de cuenta de un IAccount mediante la propiedad .HomeAccountId>

Devoluciones

Implementaciones

Se aplica a

GetAccountAsync(String, CancellationToken)

Obtenga por IAccount su identificador entre las cuentas disponibles en la caché de tokens.

public System.Threading.Tasks.Task<Microsoft.Identity.Client.IAccount> GetAccountAsync(string accountId, System.Threading.CancellationToken cancellationToken = default);
member this.GetAccountAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.IAccount>
Public Function GetAccountAsync (accountId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IAccount)

Parámetros

accountId
String

Identificador de cuenta. El identificador suele ser el valor de la Identifier propiedad de AccountId. Normalmente, se obtiene el identificador de cuenta de un IAccount mediante la propiedad .HomeAccountId>

cancellationToken
CancellationToken

Token de cancelación

Devoluciones

Se aplica a