UITestControl.WaitForControlReady 方法

阻止当前线程,直到此控件准备好接收受鼠标或键盘输入,或直到默认超时时间已到。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
Public Function WaitForControlReady As Boolean
public bool WaitForControlReady()
public:
bool WaitForControlReady()
member WaitForControlReady : unit -> bool 
public function WaitForControlReady() : boolean

返回值

类型:System.Boolean
如果此控件在超时前就已准备好接受鼠标或键盘输入,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

UITestControl 类

WaitForControlReady 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间