ClientApplicationBase.GetAccountAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Naam | Description |
|---|---|
| GetAccountAsync(String) |
Haal de IAccount id op van de accounts die beschikbaar zijn in de tokencache. |
| GetAccountAsync(String, CancellationToken) |
Haal de IAccount id op van de accounts die beschikbaar zijn in de tokencache. |
GetAccountAsync(String)
Haal de IAccount id op van de accounts die beschikbaar zijn in de tokencache.
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-id. De id is doorgaans de waarde van de Identifier eigenschap van AccountId. Doorgaans krijgt u de account-id van een IAccount account met behulp van de HomeAccountId eigenschap>
Retouren
Implementeringen
Van toepassing op
GetAccountAsync(String, CancellationToken)
Haal de IAccount id op van de accounts die beschikbaar zijn in de tokencache.
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-id. De id is doorgaans de waarde van de Identifier eigenschap van AccountId. Doorgaans krijgt u de account-id van een IAccount account met behulp van de HomeAccountId eigenschap>
- cancellationToken
- CancellationToken
Annuleringstoken