System.IO.Ports.SerialPort.WriteLine Method

Writes the specified string and the SerialPort.NewLine value to the output buffer.

Syntax

public void WriteLine (string str)

Parameters

str
Documentation for this section has not yet been entered.

Remarks

If there are too many bytes in the input buffer and SerialPort.Handshake is set to Handshake.XOnXOff then the System.IO.Ports.SerialPort object may raise a System.ServiceProcess.TimeoutException while it waits for the device to be ready to accept more data.

The written output includes the SerialPort.NewLine string.

Requirements

Namespace: System.IO.Ports
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0