Partager via


IClientApplicationBase.GetAccountAsync(String) Method

Definition

Get the IAccount by its identifier among the accounts available in the token cache and of the same environment (authority host) as Authority.

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

Parameters

identifier
String

Account identifier. The value of the identifier will probably have been stored value from the value of the Identifier property of AccountId. You typically get the account ID from an IAccount by using the HomeAccountId property.

Returns

Applies to