The properties of System.IO.Ports.SerialPort are listed below. For a list of all members, see the SerialPort Members list.
See Also: Inherited members from System.ComponentModel.Component
| [read-only] | BaseStream | System.IO.Stream.
Gets the underlying System.IO.Stream object for a System.IO.Ports.SerialPort object. |
| BaudRate | int.
Gets or sets the serial baud rate. | |
| BreakState | bool.
Gets or sets the break signal state. | |
| [read-only] | BytesToRead | int.
Gets the number of bytes of data in the receive buffer. |
| [read-only] | BytesToWrite | int.
Gets the number of bytes of data in the send buffer. |
| [read-only] | CDHolding | bool.
Gets the state of the Carrier Detect line for the port. |
| [read-only] | CtsHolding | bool.
Gets the state of the Clear-to-Send line. |
| DataBits | int.
Gets or sets the standard length of data bits per byte. | |
| DiscardNull | bool.
Gets or sets a value indicating whether null bytes are ignored when transmitted between the port and the receive buffer. | |
| [read-only] | DsrHolding | bool.
Gets the state of the Data Set Ready (DSR) signal. |
| DtrEnable | bool.
Gets or sets a value that enables the Data Terminal Ready (DTR) signal during serial communication. | |
| Encoding | System.Text.Encoding.
Gets or sets the byte encoding for pre- and post-transmission conversion of text. | |
| Handshake | Handshake.
Gets or sets the handshaking protocol for serial port transmission of data. | |
| [read-only] | IsOpen | bool.
Gets a value indicating the open or closed status of the System.IO.Ports.SerialPort object. |
| NewLine | string.
Gets or sets the value used to interpret the end of a call to the SerialPort.ReadLine and SerialPort.WriteLine(string) methods. | |
| Parity | Parity.
Gets or sets the parity-checking protocol. | |
| ParityReplace | byte.
Gets or sets the byte that replaces invalid bytes in a data stream when a parity error occurs. | |
| PortName | string.
Gets or sets the port for communications, including but not limited to all available COM ports. | |
| ReadBufferSize | int.
Gets or sets the size of the System.IO.Ports.SerialPort input buffer. | |
| ReadTimeout | int.
Gets or sets the number of milliseconds before a time-out occurs when a read operation does not finish. | |
| ReceivedBytesThreshold | int.
Gets or sets the number of bytes in the internal input buffer before a SerialPort.DataReceived event occurs. | |
| RtsEnable | bool.
Gets or sets a value indicating whether the Request to Send (RTS) signal is enabled during serial communication. | |
| StopBits | StopBits.
Gets or sets the standard number of stopbits per byte. | |
| WriteBufferSize | int.
Gets or sets the size of the serial port output buffer. | |
| WriteTimeout | int.
Gets or sets the number of milliseconds before a time-out occurs when a write operation does not finish. |