ComboBoxAutomationPeer.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

等待关联进程变为空闲状态的时间(以毫秒为单位)。 最大值为 Int32.MaxValue

返回

Boolean

bool

如果窗口已进入空闲状态,则为 true;如果发生超时,则为 false

实现

M:Microsoft.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(System.Int32) M:Microsoft.UI.Xaml.Automation.Provider.IWindowProvider.WaitForInputIdle(int)

适用于