AddTapi.NET Developer's Manual
Lines Property
NamespacesTraysoft.AddTapiTapiAppLines
Gets a list of telephony line devices available on the computer.
Declaration Syntax
C#Visual BasicVisual C++
public static IList<TapiLine> Lines { get; }
Public Shared ReadOnly Property Lines As IList(Of TapiLine)
public:
static property IList<TapiLine^>^ Lines {
	IList<TapiLine^>^ get ();
}
Remarks
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.

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()
            
See Also

Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)