Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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, and 4.1.
See Also
Reference
SerialPort Class
SerialPort Members
System.IO.Ports Namespace