UITestControl.WaitForControlCondition 方法 (Predicate<UITestControl>, Int32)
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)
Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
Public Function WaitForControlCondition ( _
conditionEvaluator As Predicate(Of UITestControl), _
millisecondsTimeout As Integer _
) As Boolean
public bool WaitForControlCondition(
Predicate<UITestControl> conditionEvaluator,
int millisecondsTimeout
)
public:
bool WaitForControlCondition(
Predicate<UITestControl^>^ conditionEvaluator,
int millisecondsTimeout
)
member WaitForControlCondition :
conditionEvaluator:Predicate<UITestControl> *
millisecondsTimeout:int -> bool
public function WaitForControlCondition(
conditionEvaluator : Predicate<UITestControl>,
millisecondsTimeout : int
) : boolean
參數
- conditionEvaluator
類型:Predicate<UITestControl>
- millisecondsTimeout
類型:Int32
傳回值
類型:Boolean
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。