ClientApplicationBase.GetAccountAsync(String) Method

Definition

Get the IAccount by its identifier among the accounts available in the token cache.

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)

Parameters

accountId
String

Account identifier. The identifier is typically the value of the Identifier property of AccountId. You typically get the account id from an IAccount by using the HomeAccountId property>

Returns

Implements

Applies to