System.IO.Ports.SerialPort.DiscardNull Property

Gets or sets a value indicating whether null bytes are ignored when transmitted between the port and the receive buffer.

Syntax

[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DefaultValue(false)]
[System.Diagnostics.MonitoringDescription("")]
[System.MonoTODO("Not implemented")]
public bool DiscardNull { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This value should normally be set to false, especially for binary transmissions. Setting this property to true can cause unexpected results for UTF32- and UTF16-encoded bytes.

Requirements

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