IUISynchronizationWaiter.Wait Method

Causes the UI test framework to wait before raising an event.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Function Wait ( _
    timeout As Integer, _
    data As Object _
) As Boolean
bool Wait(
    int timeout,
    Object data
)
bool Wait(
    int timeout, 
    Object^ data
)
abstract Wait : 
        timeout:int * 
        data:Object -> bool 
function Wait(
    timeout : int, 
    data : Object
) : boolean

Parameters

  • timeout
    Type: System.Int32
    The number of seconds to wait before raising the event.
  • data
    Type: System.Object
    Information about the event to wait for. Depending on the data, the waiter may return immediately.

Return Value

Type: System.Boolean
true if the event is successfully raised; false if the data is not appropriate for waiting.

.NET Framework Security

See Also

Reference

IUISynchronizationWaiter Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

WaitForReady