System.IO.Ports.SerialPort.PortName Property

Gets or sets the port for communications, including but not limited to all available COM ports.

Syntax

[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DefaultValue("COM1")]
[System.Diagnostics.MonitoringDescription("")]
public string PortName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

A list of valid port names can be obtained using the SerialPort.GetPortNames method.

Requirements

Namespace: System.IO.Ports
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0