Share via


Parity Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the parity-checking protocol.

Namespace:  System.IO.Ports
Assembly:  Microsoft.SPOT.Hardware.SerialPort (in Microsoft.SPOT.Hardware.SerialPort.dll)

Syntax

'Declaration
Public Property Parity As Parity
public Parity Parity { get; set; }
public:
property Parity Parity {
    Parity get ();
    void set (Parity value);
}
member Parity : Parity with get, set
function get Parity () : Parity
function set Parity (value : Parity)

Property Value

Type: System.IO.Ports. . :: . .Parity
One of the enumeration values that represents the parity-checking protocol. The default is None.

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.

.NET Framework Security

See Also

Reference

SerialPort Class

System.IO.Ports Namespace