一款简单易用的基础网络通讯组件库。

SerialPortOptionDtrEnable 属性

Gets or sets a value that enables the Data Terminal Ready (DTR) signal during serial communication.

Definition

命名空间: TouchSocket.SerialPorts
程序集: TouchSocket.SerialPorts (在 TouchSocket.SerialPorts.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public bool DtrEnable { get; set; }

返回值

Boolean
to enable Data Terminal Ready (DTR); otherwise, . The default is .

异常

IOExceptionThe 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.

参见