SerialPort.CtsHolding 属性

定义

获取“可以发送”行的状态。Gets the state of the Clear-to-Send line.

public:
 property bool CtsHolding { bool get(); };
public bool CtsHolding { get; }
[System.ComponentModel.Browsable(false)]
public bool CtsHolding { get; }
member this.CtsHolding : bool
[<System.ComponentModel.Browsable(false)>]
member this.CtsHolding : bool
Public ReadOnly Property CtsHolding As Boolean

属性值

Boolean

如果检测到“可以发送”行,则为 true;否则为 falsetrue if the Clear-to-Send line is detected; otherwise, false.

属性

例外

此端口处于无效状态。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.

流已关闭。The stream is closed. 这可能会因为尚未调用 Open() 方法或已调用了 Close() 方法而发生。This can occur because the Open() method has not been called or the Close() method has been called.

注解

向发送/清除请求发送/清除以发送 (RTS/CTS) 硬件握手的请求中,将使用 " (询价") 行。The Clear-to-Send (CTS) line is used in Request to Send/Clear to Send (RTS/CTS) hardware handshaking. 在发送数据之前,会通过端口查询 CTS 行。The CTS line is queried by a port before data is sent.

适用于