SerialPort.ParityReplace プロパティ

定義

パリティ エラーが発生したときにデータ ストリーム内の無効なバイトを置き換えるバイトを取得または設定します。

public:
 property System::Byte ParityReplace { System::Byte get(); void set(System::Byte value); };
public byte ParityReplace { get; set; }
[System.ComponentModel.Browsable(true)]
public byte ParityReplace { get; set; }
member this.ParityReplace : byte with get, set
[<System.ComponentModel.Browsable(true)>]
member this.ParityReplace : byte with get, set
Public Property ParityReplace As Byte

プロパティ値

無効なバイトを置き換えるバイト。

属性

例外

ポートが無効な状態です。

-又は-

基になるポートの状態を設定できませんでした。 たとえば、この SerialPort オブジェクトから渡されたパラメーターが無効です。

注釈

値が null 文字に設定されている場合、パリティ置換は無効になります。

適用対象