UITestControl.WaitForControlEnabled 方法

阻止当前线程,直到启用此控件或直到默认超时时间已到。

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

语法

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

返回值

类型:System.Boolean
如果此控件在超时前启用,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

UITestControl 类

WaitForControlEnabled 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间

WaitForReadyTimeout