Share via


SerialParity Enum

Definition

Defines values for the parity bit for the serial data transmission. The values are used by the Parity property on the SerialDevice object.

public enum class SerialParity
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SerialParity
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SerialParity
var value = Windows.Devices.SerialCommunication.SerialParity.none
Public Enum SerialParity
Inheritance
SerialParity
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
None 0

No parity check occurs.

Odd 1

Sets the parity bit so that the total count of data bits set is an odd number.

Even 2

Sets the parity bit so that the total count of data bits set is an even number.

Mark 3

Leaves the parity bit set to 1.

Space 4

Leaves the parity bit set to 0.

Applies to