Visual Basic (Declaration) | |
---|---|
Public Property DataBits As Integer |
C# | |
---|---|
public int DataBits {get; set;} |
The range of values for this property is from 5 through 8. The default value is 8.
Exception | Description |
---|---|
System.InvalidOperationException | Property cannot be changed if connection is open. |
System.ArgumentOutOfRangeException | The data bits value is less than 5 or more than 8. |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8