Udostępnij za pośrednictwem


ClientApplicationBase.GetAccountAsync Method

Definition

Overloads

GetAccountAsync(String)

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

GetAccountAsync(String, CancellationToken)

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

GetAccountAsync(String)

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

GetAccountAsync(String, CancellationToken)

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, 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)

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>

cancellationToken
CancellationToken

Cancellation token

Returns

Applies to