Constructor SerialPortDevice
| Edit this page View SourceSerialPortDevice(SerialPort)
Initializes a new instance of the SerialPortDevice class.
Declaration
public SerialPortDevice(SerialPort port)
Parameters
| Type | Name | Description |
|---|---|---|
| SerialPort | port | The serial port. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | port |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Windows | main, v3.0 |
| .NET Framework | main, v3.0, v2.2, v2.1, v2.0 |