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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.