System.IO.Ports.SerialPort.Open Method

Opens a new serial port connection.

Syntax

public void Open ()

Remarks

Only one open connection can exist per System.IO.Ports.SerialPort object.

The best practice for any application is to wait for some amount of time after calling the SerialPort.Close method before attempting to call the SerialPort.Open method, as the port may not be closed instantly.

Requirements

Namespace: System.IO.Ports
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0