UITestControl.WaitForCondition<T> Method (T, Predicate<T>, Int32)

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assemblies:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Function WaitForCondition(Of T) ( _
    conditionContext As T, _
    conditionEvaluator As Predicate(Of T), _
    millisecondsTimeout As Integer _
) As Boolean
public static bool WaitForCondition<T>(
    T conditionContext,
    Predicate<T> conditionEvaluator,
    int millisecondsTimeout
)
public:
generic<typename T>
static bool WaitForCondition(
    T conditionContext, 
    Predicate<T>^ conditionEvaluator, 
    int millisecondsTimeout
)
static member WaitForCondition : 
        conditionContext:'T * 
        conditionEvaluator:Predicate<'T> * 
        millisecondsTimeout:int -> bool
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • conditionContext
    Type: T
  • conditionEvaluator
    Type: Predicate<T>
  • millisecondsTimeout
    Type: Int32

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

UITestControl Class

WaitForCondition Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace