Gets a list of telephony line devices available on the computer.
Lines is a collection of TapiLine objects representing telephony line devices installed on the computer.
This collection is updated automatically when a new line device is added to the system and when existing device is removed.
The application can subscribe to LineAdded and LineRemoved events to receive notifications when a line device is added or removed.
The following code shows how to list line devices installed on the computer.
C#
TapiApp.Initialize("MyApp");
foreach(TapiLine line in TapiApp.Lines)
{
Console.WriteLine("Line device {0}", line.Name);
}
TapiApp.Shutdown();
VB.NET
TapiApp.Initialize("MyApp")
For Each line As TapiLine In TapiApp.Lines
Console.WriteLine("Line device {0}", line.Name)
Next
TapiApp.Shutdown()
Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)