AppBarAutomationPeer.WaitForInputIdle(Int32) 方法

定义

在指定时间或关联进程进入空闲状态之前阻止调用代码,以先完成者为准。

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:Windows.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(System.Int32) M:Windows.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(int)

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

适用于