Bagikan melalui


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

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) _
) As Boolean
public static bool WaitForCondition<T>(
    T conditionContext,
    Predicate<T> conditionEvaluator
)
public:
generic<typename T>
static bool WaitForCondition(
    T conditionContext, 
    Predicate<T>^ conditionEvaluator
)
static member WaitForCondition : 
        conditionContext:'T * 
        conditionEvaluator:Predicate<'T> -> bool
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

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

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

UITestControl Class

WaitForCondition Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace