Click or drag to resize
TapiAppTapiError Event
Occurs when Telephony API (TAPI) error is received while performing an asynchronous operation.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public static event TapiErrorEventHandler TapiError

Value

Type: Traysoft.AddTapiTapiErrorEventHandler
Remarks
AddTapi.NET performs some operations asynchronously using background threads. This event is fired when TAPI error occurs during asynchronous operation. The application should report such errors to the user.
Note Note
In Windows Forms and WPF applications AddTapi.NET executes the handler of this event on the main thread of the application (the thread that called Initialize(String)). It is safe to access Windows Forms or WPF controls from the event handler without using Invoke mechanism.
Examples
The following code shows how to handle TapiError event.
TapiApp.Initialize("MyApp");
TapiApp.TapiError += OnTapiError;
...

void OnTapiError(object sender, TapiErrorEventArgs args)
{
    // Display the error message
    Console.WriteLine(args.Message);
}
See Also