AddTapi.NET Developer's Manual
WaitUntilDone Method (timeoutSeconds)
NamespacesTraysoft.AddTapiTapiCallWaitUntilDone(Int32)
Waits until either all pending speak and play requests have completed or the specified time interval has elapsed.
Declaration Syntax
C#Visual BasicVisual C++
public bool WaitUntilDone(
	int timeoutSeconds
)
Public Function WaitUntilDone ( _
	timeoutSeconds As Integer _
) As Boolean
public:
bool WaitUntilDone(
	int timeoutSeconds
)
Parameters
timeoutSeconds (Int32)
Timeout period in seconds.
Return Value
True if all pending speak and play requests completed withing the specified time interval.
Remarks
When the application calls Speak(String, Boolean) or Play(String, Boolean), speak and play requests are added to the queue. AddTapi.NET plays and speaks queued play and speak requests in the same order they were queued. The application can use WaitUntilDone method to wait until all pending speak and play requests have completed.
Exceptions
ExceptionCondition
TapiDisconnectExceptionThe call has been disconnected while waiting for speak and play requests to be completed.

Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)