Occurs when Telephony API (TAPI) error is received while performing an asynchronous operation.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntaxpublic static event TapiErrorEventHandler TapiError
Public Shared Event TapiError As TapiErrorEventHandler
public:
static event TapiErrorEventHandler^ TapiError {
void add (TapiErrorEventHandler^ value);
void remove (TapiErrorEventHandler^ value);
}
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 |
---|
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.
|
ExamplesThe following code shows how to handle TapiError event.
TapiApp.Initialize("MyApp");
TapiApp.TapiError += OnTapiError;
...
void OnTapiError(object sender, TapiErrorEventArgs args)
{
Console.WriteLine(args.Message);
}
TapiApp.Initialize("MyApp")
AddHandler TapiApp.TapiError, AddressOf OnTapiError
...
Private Sub OnTapiError(ByVal sender As Object, ByVal args As TapiErrorEventArgs)
Console.WriteLine(args.Message)
End Sub
No code example is currently available or this language may not be supported.
See Also