ClientApplicationBase.GetAccountAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAccountAsync(String) |
在代幣快取中可用帳戶中取得 的 IAccount 識別碼。 |
| GetAccountAsync(String, CancellationToken) |
在代幣快取中可用帳戶中取得 的 IAccount 識別碼。 |
GetAccountAsync(String)
在代幣快取中可用帳戶中取得 的 IAccount 識別碼。
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)
參數
- accountId
- String
帳戶識別碼。 識別碼通常是 屬性AccountId的值Identifier。 通常你是透過使用HomeAccountId該物業取得IAccount帳號 ID>
傳回
實作
適用於
GetAccountAsync(String, CancellationToken)
在代幣快取中可用帳戶中取得 的 IAccount 識別碼。
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)
參數
- accountId
- String
帳戶識別碼。 識別碼通常是 屬性AccountId的值Identifier。 通常你是透過使用HomeAccountId該物業取得IAccount帳號 ID>
- cancellationToken
- CancellationToken
取消令牌