語言

AppCredentials.GetTokenAsync(Boolean) 方法

定義

取得 OAuth 存取令牌。

public System.Threading.Tasks.Task<string> GetTokenAsync(bool forceRefresh = false);
member this.GetTokenAsync : bool -> System.Threading.Tasks.Task<string>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of String)

參數

forceRefresh
Boolean

True 是表示 強制重新整理令牌;如果存在快取令牌,則為 false。

傳回

工作,表示要執行的工作佇列。

備註

如果工作成功,結果會包含存取令牌字串。

適用於