SerialPort.DsrHolding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the state of the Data Set Ready (DSR) signal.
public:
property bool DsrHolding { bool get(); };
public bool DsrHolding { get; }
[System.ComponentModel.Browsable(false)]
public bool DsrHolding { get; }
member this.DsrHolding : bool
[<System.ComponentModel.Browsable(false)>]
member this.DsrHolding : bool
Public ReadOnly Property DsrHolding As Boolean
Property Value
true
if a Data Set Ready signal has been sent to the port; otherwise, false
.
- Attributes
Exceptions
The port is in an invalid state.
-or-
An attempt to set the state of the underlying port failed. For example, the parameters passed from this SerialPort object were invalid.
The stream is closed. This can occur because the Open() method has not been called or the Close() method has been called.
Remarks
This property is used in Data Set Ready/Data Terminal Ready (DSR/DTR) handshaking. The Data Set Ready (DSR) signal is usually sent by a modem to a port to indicate that it is ready for data transmission or data reception.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈