ISerialPortChangeParity Method

Stores current value of parity for future check. Descendant communicator can implement change of serial port parity for its channel.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
bool ChangeParity(
	string parity,
	CancellationToken cancelToken
)

Parameters

parity  String
New value of parity. It can be one from values None, Odd, Even, Mark, Space.
cancelToken  CancellationToken

Return Value

Boolean
Returns true if parity was changed, otherwise false.

See Also