Parity Enumeration
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies the parity bit for a SerialPort object.
Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Enumeration Parity
public enum Parity
public enum class Parity
type Parity
public enum Parity
Members
Member name | Description | |
---|---|---|
None | No parity check occurs. | |
Odd | Sets the parity bit so that the count of bits set is an odd number. | |
Even | Sets the parity bit so that the count of bits set is an even number. | |
Mark | Leaves the parity bit set to 1. | |
Space | Leaves the parity bit set to 0. |
Remarks
Use this enumeration when setting the Parity property for a serial port connection.
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.