Share via


SerialPort.PortName Property

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

Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public string PortName { get; }

Property Value

The communications port. The default is COM1.

Remarks

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

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

SerialPort Class
SerialPort Members
System.IO.Ports Namespace