GetSerialPortDescription Method

Retrieves string description of serial port.

Syntax

Visual Basic .NET
Function GetSerialPortDescription(ByVal index As UInt16) As String 
Visual C#
String GetSerialPortDescription(UInt16 index);

Parameters

index

[in] Index of serial port (0 ... number_of_ports - 1).

Return

String value representing serial port description, e.g. "Communications Port (COM1)".