Gets or sets the number of data bits in each byte

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public int DataBits { get; set; }
Visual Basic
Public Property DataBits As Integer
	Get
	Set
Visual C++
public:
virtual property int DataBits {
	int get () sealed;
	void set (int value) sealed;
}

Field Value

The number of data bits in each byte, default is 8 data bits

Return Value

Integer number of data bits in each byte

Implements

ISerial..::..DataBits

Remarks

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionThe data bits value is less than 5 or more than 8

See Also