語言

PublicClientApplication.IsUserInteractive 方法

定義

當應用程式以無頭模式執行時(例如透過 SSH-d 連接 Linux 機器)時會回傳 false 。 如果沒有 UI 支援,瀏覽器(網頁檢視)和代理工具就無法使用。 對於這些情境,請使用 AcquireTokenWithDeviceCode(IEnumerable<String>, Func<DeviceCodeResult,Task>)。

public bool IsUserInteractive();
member this.IsUserInteractive : unit -> bool
Public Function IsUserInteractive () As Boolean

傳回

適用於