UITestControl.WaitForControlNotExist 方法 (Int32)

阻止当前线程,直到用户界面中不再存在此控件,或直到指定超时时间已到。

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

语法

声明
Public Function WaitForControlNotExist ( _
    millisecondsTimeout As Integer _
) As Boolean
public bool WaitForControlNotExist(
    int millisecondsTimeout
)
public:
bool WaitForControlNotExist(
    int millisecondsTimeout
)
member WaitForControlNotExist : 
        millisecondsTimeout:int -> bool 
public function WaitForControlNotExist(
    millisecondsTimeout : int
) : boolean

参数

  • millisecondsTimeout
    类型:System.Int32
    超时前的毫秒数。

返回值

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

.NET Framework 安全性

请参见

参考

UITestControl 类

WaitForControlNotExist 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间