语言

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> 对象。

实现

适用于