System.IO.Ports.SerialPort.Parity Property

Gets or sets the parity-checking protocol.

Syntax

[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[System.Diagnostics.MonitoringDescription("")]
public Parity Parity { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Parity is an error-checking procedure in which the number of 1s must always be the same—either even or odd—for each group of bits that is transmitted without error. In modem-to-modem communications, parity is often one of the parameters that must be agreed upon by sending parties and receiving parties before transmission can take place.

If a parity error occurs on the trailing byte of a stream, an extra byte will be added to the input buffer with a value of 126.

Requirements

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