Gets a list of telephony line devices available on the computer.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax public static IList<TapiLine> Lines { get; }
Public Shared ReadOnly Property Lines As IList(Of TapiLine)
Get
public:
static property IList<TapiLine^>^ Lines {
IList<TapiLine^>^ get ();
}
Property Value
Type:
IListTapiLineRemarks 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.
Examples The following code shows how to list line devices installed on the computer.
TapiApp.Initialize("MyApp");
foreach(TapiLine line in TapiApp.Lines)
{
Console.WriteLine("Line device {0}", line.Name);
}
TapiApp.Shutdown();
TapiApp.Initialize("MyApp")
For Each line As TapiLine In TapiApp.Lines
Console.WriteLine("Line device {0}", line.Name)
Next
TapiApp.Shutdown()
No code example is currently available or this language may not be supported.
See Also