語言

ManagedIdentityAuthenticator.GetTokenAsync(Boolean) 方法

定義

取得安全性令牌。

public System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult> GetTokenAsync(bool forceRefresh = false);
abstract member GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
override this.GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticatorResult)

參數

forceRefresh
Boolean

告訴你如何獲得新代幣,不論過期時間如何。

傳回

Task<TResult> 物件。

實作

適用於