UITestControl.WaitForControlNotExist 方法

封鎖目前的執行緒,直到控制項不再顯示在使用者介面 (UI),或直到預設逾時過期為止。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Function WaitForControlNotExist As Boolean
public bool WaitForControlNotExist()
public:
bool WaitForControlNotExist()
member WaitForControlNotExist : unit -> bool 
public function WaitForControlNotExist() : boolean

傳回值

型別:System.Boolean
如果這個控制項在逾時前存在則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

UITestControl 類別

WaitForControlNotExist 多載

Microsoft.VisualStudio.TestTools.UITesting 命名空間

WaitForReadyTimeout