Språk

ClientApplicationBase.GetAccountAsync Metod

Definition

Överlagringar

Name Description
GetAccountAsync(String)

IAccount Hämta efter dess identifierare bland de konton som är tillgängliga i tokencachen.

GetAccountAsync(String, CancellationToken)

IAccount Hämta efter dess identifierare bland de konton som är tillgängliga i tokencachen.

GetAccountAsync(String)

IAccount Hämta efter dess identifierare bland de konton som är tillgängliga i tokencachen.

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)

Parametrar

accountId
String

Kontoidentifierare. Identifieraren är vanligtvis värdet för Identifier egenskapen AccountIdför . Du får vanligtvis konto-ID:t från en IAccount med hjälp HomeAccountId av egenskapen>

Returer

Implementeringar

Gäller för

GetAccountAsync(String, CancellationToken)

IAccount Hämta efter dess identifierare bland de konton som är tillgängliga i tokencachen.

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)

Parametrar

accountId
String

Kontoidentifierare. Identifieraren är vanligtvis värdet för Identifier egenskapen AccountIdför . Du får vanligtvis konto-ID:t från en IAccount med hjälp HomeAccountId av egenskapen>

cancellationToken
CancellationToken

Annulleringstoken

Returer

Gäller för