Initializes a new instance of the Stream class.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public Stream(
	string port,
	int baudRate,
	Parity parity,
	int dataBits,
	StopBits stopBits
)
Visual Basic (Declaration)
Public Sub New ( _
	port As String, _
	baudRate As Integer, _
	parity As Parity, _
	dataBits As Integer, _
	stopBits As StopBits _
)
Visual C++
public:
Stream(
	String^ port, 
	int baudRate, 
	Parity parity, 
	int dataBits, 
	StopBits stopBits
)

Parameters

port
Type: System..::.String
A string indicating the port to be used, for example, COM1
baudRate
Type: System..::.Int32
An integer indicating the baud rate.
parity
Type: System.IO.Ports..::.Parity
A value from the Parity enumeration.
dataBits
Type: System..::.Int32
An integer indicating the data bits value.
stopBits
Type: System.IO.Ports..::.StopBits
A value from the StopBits enumeration.

See Also