Udostępnij za pośrednictwem


ClientApplicationBase.GetAccountsAsync Method

Definition

Overloads

GetAccountsAsync(String, CancellationToken)

Get the IAccount collection by its identifier among the accounts available in the token cache, based on the user flow. This is for Azure AD B2C scenarios.

GetAccountsAsync(CancellationToken)

Returns all the available accounts in the user token cache for the application.

GetAccountsAsync(String)

Get the IAccount collection by its identifier among the accounts available in the token cache, based on the user flow. This is for Azure AD B2C scenarios.

GetAccountsAsync()

Returns all the available accounts in the user token cache for the application.

GetAccountsAsync(String, CancellationToken)

Get the IAccount collection by its identifier among the accounts available in the token cache, based on the user flow. This is for Azure AD B2C scenarios.

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

Parameters

userFlow
String

The identifier is the user flow being targeted by the specific B2C authority/>.

cancellationToken
CancellationToken

Cancellation token

Returns

Applies to

GetAccountsAsync(CancellationToken)

Returns all the available accounts in the user token cache for the application.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Identity.Client.IAccount>> GetAccountsAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetAccountsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Identity.Client.IAccount>>
Public Function GetAccountsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of IAccount))

Parameters

cancellationToken
CancellationToken

Returns

Applies to

GetAccountsAsync(String)

Get the IAccount collection by its identifier among the accounts available in the token cache, based on the user flow. This is for Azure AD B2C scenarios.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Identity.Client.IAccount>> GetAccountsAsync (string userFlow);
abstract member GetAccountsAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.Identity.Client.IAccount>>
override this.GetAccountsAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.Identity.Client.IAccount>>
Public Function GetAccountsAsync (userFlow As String) As Task(Of IEnumerable(Of IAccount))

Parameters

userFlow
String

The identifier is the user flow being targeted by the specific B2C authority/>.

Returns

Implements

Applies to

GetAccountsAsync()

Returns all the available accounts in the user token cache for the application.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Identity.Client.IAccount>> GetAccountsAsync ();
abstract member GetAccountsAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.Identity.Client.IAccount>>
override this.GetAccountsAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.Identity.Client.IAccount>>
Public Function GetAccountsAsync () As Task(Of IEnumerable(Of IAccount))

Returns

Implements

Applies to