Share via


SerialPort.IsOpen Property

Gets a value indicating the open or closed status of the SerialPort object.

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

Syntax

public bool IsOpen { get; }

Property Value

true if the serial port is open; otherwise, false. The default is false.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

SerialPort Class
SerialPort Members
System.IO.Ports Namespace