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: Int32- The number of seconds to wait before raising the event. 
- data 
 Type: Object- Information about the event to wait for. Depending on the data, the waiter may return immediately. 
Return Value
Type: Boolean
true if the event is successfully raised; false if the data is not appropriate for waiting.
.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.
See Also
Reference
IUISynchronizationWaiter Interface