Langue

ClientApplicationBase.GetAccountAsync Méthode

Définition

Surcharges

Nom Description
GetAccountAsync(String)

Obtenez l’identificateur IAccount par son identificateur parmi les comptes disponibles dans le cache de jetons.

GetAccountAsync(String, CancellationToken)

Obtenez l’identificateur IAccount par son identificateur parmi les comptes disponibles dans le cache de jetons.

GetAccountAsync(String)

Obtenez l’identificateur IAccount par son identificateur parmi les comptes disponibles dans le cache de jetons.

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)

Paramètres

accountId
String

Identificateur de compte. L’identificateur est généralement la valeur de la Identifier propriété de AccountId. Vous obtenez généralement l’ID de compte à partir d’une IAccount à l’aide de la HomeAccountId propriété>

Retours

Implémente

S’applique à

GetAccountAsync(String, CancellationToken)

Obtenez l’identificateur IAccount par son identificateur parmi les comptes disponibles dans le cache de jetons.

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)

Paramètres

accountId
String

Identificateur de compte. L’identificateur est généralement la valeur de la Identifier propriété de AccountId. Vous obtenez généralement l’ID de compte à partir d’une IAccount à l’aide de la HomeAccountId propriété>

cancellationToken
CancellationToken

Jeton d’annulation

Retours

S’applique à