SerialPort::BreakState Property
Gets or sets the break signal state.
Assembly: System (in System.dll)
public: [BrowsableAttribute(false)] property bool BreakState { bool get(); void set(bool value); }
| Exception | Condition |
|---|---|
| IOException | The port is in an invalid state. - or - An attempt to set the state of the underlying port failed. For example, the parameters passed from this SerialPort object were invalid. |
| InvalidOperationException |
The break signal state occurs when a transmission is suspended and the line is placed in a break state (all low, no stop bit) until released. To enter a break state, set this property to true. If the port is already in a break state, setting this property again to true does not result in an exception. It is not possible to write to the SerialPort object while BreakState is true.
Available since 2.0