SerialPort Constructor (String, Int32)

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

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

Syntax

public SerialPort (
         stringportName,
         intbaudRate
)

Parameters

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

Remarks

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

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