SerialPort Constructor (String)

Initializes a new instance of the SerialPort class using the specified port name.

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

Syntax

public SerialPort (
         stringportName
)

Parameters

  • portName
    The port to use (for example, COM1).

Remarks

Use this constructor to create a new instance of the SerialPort class when you want to specify the port name.

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