PortName Property

Name of virtual serial port. This property should be set before calling Attach method or accessing any property. Changing it after Attach call leads to ftvspcErrorPortAttached exception. In case of this property is set in Design mode, virtual serial port will be created automatically on the start of application.
Remarks: When FTVSPCPort Class created dynamically (not by placing on form) there is no need to call the Attach method after setting of this property.

Access

Read/Write

Syntax

Visual Basic .NET
PortName As String
Visual C#
String PortName;