SerialPort.RtsEnable 属性
定义
获取或设置一个值,该值指示在串行通信中是否启用请求发送 (RTS) 信号。Gets or sets a value indicating whether the Request to Send (RTS) signal is enabled during serial communication.
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
属性值
如果为 true,则启用请求发送 (RTS);否则为 false。true to enable Request to Transmit (RTS); otherwise, false. 默认值为 false。The default is false.
- 属性
例外
在 RtsEnable 属性设置为 Handshake 值或 RequestToSend 值时设置或检索 RequestToSendXOnXOff 属性。The value of the RtsEnable property was set or retrieved while the Handshake property is set to the RequestToSend value or the RequestToSendXOnXOff value.
此端口处于无效状态。The port is in an invalid state.
- 或 --or- 尝试设置基础端口状态失败。An attempt to set the state of the underlying port failed. 例如,从此 SerialPort 对象传递的参数无效。For example, the parameters passed from this SerialPort object were invalid.
注解
传输 (RTS) 信号的请求通常用于发送/清除请求发送 (RTS/CTS) 硬件握手。The Request to Transmit (RTS) signal is typically used in Request to Send/Clear to Send (RTS/CTS) hardware handshaking.