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