BaseStation.ItemDescriber Namespace
CAS.DataPorter.Configurator Namespace
CAS.Lib.CommonBus Namespace
CAS.Lib.CommonBus.ApplicationLayer Namespace
CAS.Lib.CommonBus.CommunicationLayer Namespace
CAS.Lib.DeviceSimulator Namespace
CAS.NetworkConfigLib Namespace
Object-Oriented Internet Process-Observer

SerialPortSettings..::..DataBits Property

Gets or sets the standard length of data bits per byte.

Namespace:  CAS.Lib.CommonBus.CommunicationLayer.RS
Assembly:  CommServer.CommonBus (in CommServer.CommonBus.dll)

Syntax


<MonitoringDescriptionAttribute> _
<BrowsableAttribute> _
<DefaultValueAttribute> _
Public Property DataBits As Integer
	Get
	Set
[MonitoringDescriptionAttribute]
[BrowsableAttribute]
[DefaultValueAttribute]
public:
property int^ DataBits {
	int^ get ();
	void set (int^ value);
}

Field Value

The data bits length.

Remarks


Exceptions: System.IO.IOException: 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 System.IO.Ports.SerialPort object were invalid. System.ArgumentOutOfRangeException: The data bits value is less than 5 or more than 8.