SerialPort.RtsEnable 屬性

定義

取得或設定值,指出在序列通訊期間是否啟用 Request to Send (RTS) 信號。

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

屬性值

如果啟用 Request to Transmit (RTS) 則為 true,否則為 false。 預設為 false

屬性

例外狀況

RtsEnable 屬性設為 Handshake 值或 RequestToSend 值時,設定或擷取 RequestToSendXOnXOff 屬性的值。

連接埠處於無效狀態。

-或-

嘗試設定基礎連接埠的狀態失敗。 例如,從這個 SerialPort 物件傳遞而來的參數無效。

備註

傳送 (RTS) 訊號的要求通常用於要求傳送/清除以傳送 (RTS/CTS) 硬體交握。

適用於