System.IO.Ports.StopBits Enumeration

Specifies the number of stop bits used on the System.IO.Ports.SerialPort object.

Syntax

public enum StopBits

Remarks

You use this enumeration when setting the value of the SerialPort.StopBits property on the System.IO.Ports.SerialPort class. Stop bits separate each unit of data on an asynchronous serial connection. They are also sent continuously when no data is available for transmission.

The System.IO.Ports.SerialPort class throws an ArgumentOutOfRangeException exception when you set the SerialPort.StopBits property to StopBits.None.

Members

Member NameDescription
None

No stop bits are used. This value is not supported by the SerialPort.StopBits property.

One

One stop bit is used.

OnePointFive

1.5 stop bits are used.

Two

Two stop bits are used.

Requirements

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