Occurs when existing line device is removed.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntaxpublic static event TapiEventHandler LineRemoved
Public Shared Event LineRemoved As TapiEventHandler
public:
static event TapiEventHandler^ LineRemoved {
void add (TapiEventHandler^ value);
void remove (TapiEventHandler^ value);
}Value
Type:
Traysoft.AddTapiTapiEventHandler
Remarks
This event occurs when a telephony line device is removed while the application is running, for example, when a USB modem is disconnected.
TapiLine object representing the removed device is removed from the
Lines collection before this event is fired.
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 LineRemoved event.
TapiApp.Initialize("MyApp");
TapiApp.LineRemoved += OnLineRemoved;
...
void OnLineRemoved(object sender, TapiEventArgs args)
{
Console.WriteLine("{0} has been removed", args.Line.Name);
}TapiApp.Initialize("MyApp")
AddHandler TapiApp.LineRemoved, AddressOf OnLineRemoved
...
Private Sub OnLineRemoved(ByVal sender As Object, ByVal args As TapiEventArgs)
Console.WriteLine("{0} has been removed", args.Line.Name)
End SubNo code example is currently available or this language may not be supported.
See Also