AppBarAutomationPeer.WaitForInputIdle(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
封鎖指定時間的呼叫程式代碼,或直到相關聯的進程進入閑置狀態為止,只要先完成。
public:
virtual bool WaitForInputIdle(int milliseconds) = WaitForInputIdle;
bool WaitForInputIdle(int const& milliseconds);
public bool WaitForInputIdle(int milliseconds);
function waitForInputIdle(milliseconds)
Public Function WaitForInputIdle (milliseconds As Integer) As Boolean
參數
- milliseconds
-
Int32
int
等候相關聯處理序變成閒置的時間量 (以毫秒為單位)。
傳回
Boolean
bool
如果應用程式行已進入閑置狀態,則為 true;如果發生逾時,則為 false。
實作
M:Microsoft.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(System.Int32)
M:Microsoft.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(int)