| Visual Basic (Declaration) | |
|---|---|
Public Property Parity As Parity | |
| C# | |
|---|---|
public Parity Parity {get; set;} | |
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.
| Exception | Description |
|---|---|
| System.InvalidOperationException | Property cannot be changed if connection is open. |
| System.ArgumentOutOfRangeException | The Parity value passed is not a valid value in the Parity enumeration. |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8