SerialPort.RtsEnable 属性

定义

获取或设置一个值,该值指示在串行通信中是否启用请求发送 (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

属性值

Boolean

如果为 true,则启用请求发送 (RTS);否则为 false。 默认值为 false

属性

例外

RtsEnable 属性设置为 Handshake 值或 RequestToSend 值时设置或检索 RequestToSendXOnXOff 属性。

此端口处于无效状态。

  • 或 - 尝试设置基础端口状态失败。 例如,从此 SerialPort 对象传递的参数无效。

注解

传输 (RTS) 信号的请求通常用于请求发送/清除以发送 (RTS/CTS) 硬件握手。

适用于