runtime.native.System.IO.Ports 9.0.2

About

System.IO.Ports package provides synchronous serial port file resource. Additionally, the functionality of this class can be wrapped in an internal Stream object, accessible through the BaseStream property, and passed to classes that wrap or use streams.

Key Features

  • synchronous and event-driven I/O
  • access to pin and break states
  • access to serial driver properties
  • access to Stream object through the BaseStream property

How to Use

using System.IO.Ports;

// Provides list of available serial ports
string[] portNames = SerialPort.GetPortNames();

// First available port
string myPortName = portNames[0];
int baudRate = 9600;

SerialPort sp = new SerialPort(myPortName, baudRate);
sp.Open();
sp.WriteLine("Hello World!");

Main Types

The main type provided by this library is:

  • SerialPort

Additional Documentation

Feedback & Contributing

System.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on runtime.native.System.IO.Ports.

Packages Downloads
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
71
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
83
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
86
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
87
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
96
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
97
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
101
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
106
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
111
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
70
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
73
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
75
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
78
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
81
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
100
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
104
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
106
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
115

https://go.microsoft.com/fwlink/?LinkID=799421

Version Downloads Last updated
10.0.0-preview.3.25171.5 5 04/12/2025
10.0.0-preview.2.25163.2 4 03/29/2025
10.0.0-preview.1.25080.5 7 02/25/2025
9.0.4 5 04/09/2025
9.0.3 5 03/16/2025
9.0.2 6 02/18/2025
9.0.1 9 01/20/2025
9.0.0 12 11/16/2024
9.0.0-rc.2.24473.5 18 10/14/2024
9.0.0-rc.1.24431.7 19 09/11/2024
9.0.0-preview.7.24405.7 25 08/13/2024
9.0.0-preview.6.24327.7 20 07/12/2024
9.0.0-preview.5.24306.7 18 06/18/2024
9.0.0-preview.4.24266.19 17 05/22/2024
9.0.0-preview.3.24172.9 24 05/22/2024
9.0.0-preview.2.24128.5 24 03/22/2024
9.0.0-preview.1.24080.9 14 03/24/2024
8.0.0 24 11/19/2023
8.0.0-rc.2.23479.6 27 10/22/2023
8.0.0-rc.1.23419.4 21 09/22/2023
8.0.0-preview.7.23375.6 27 09/11/2023
8.0.0-preview.6.23329.7 21 09/20/2023
8.0.0-preview.5.23280.8 22 06/16/2023
8.0.0-preview.4.23259.5 24 06/16/2023
8.0.0-preview.3.23174.8 23 06/16/2023
8.0.0-preview.2.23128.3 24 03/28/2023
8.0.0-preview.1.23110.8 22 03/28/2023
7.0.0 22 01/08/2023
7.0.0-rc.2.22472.3 24 10/16/2022
7.0.0-rc.1.22426.10 33 09/21/2022
7.0.0-preview.7.22375.6 29 09/23/2022
7.0.0-preview.6.22324.4 31 09/24/2022
7.0.0-preview.5.22301.12 27 09/26/2022
7.0.0-preview.4.22229.4 28 10/17/2022
7.0.0-preview.3.22175.4 30 09/27/2022
7.0.0-preview.2.22152.2 24 09/21/2022
7.0.0-preview.1.22076.8 25 09/21/2022
6.0.2-mauipre.1.22102.15 19 09/24/2022
6.0.2-mauipre.1.22054.8 19 09/24/2022
6.0.0 19 09/23/2022
6.0.0-rc.2.21480.5 21 09/25/2022
6.0.0-rc.1.21451.13 18 09/21/2022
6.0.0-preview.7.21377.19 24 09/23/2022
6.0.0-preview.6.21352.12 25 09/22/2022
6.0.0-preview.5.21301.5 27 09/26/2022
6.0.0-preview.4.21253.7 24 10/17/2022
6.0.0-preview.3.21201.4 27 09/25/2022
6.0.0-preview.2.21154.6 20 09/22/2022
6.0.0-preview.1.21102.12 28 09/22/2022
5.0.1 20 09/24/2022
5.0.0 22 09/24/2022
5.0.0-rc.2.20475.5 25 09/24/2022
5.0.0-rc.1.20451.14 27 09/25/2022
5.0.0-preview.8.20407.11 17 10/17/2022
5.0.0-preview.7.20364.11 22 09/23/2022
5.0.0-preview.6.20305.6 22 09/23/2022
5.0.0-preview.5.20278.1 21 09/23/2022
5.0.0-preview.4.20251.6 23 10/17/2022
5.0.0-preview.3.20214.6 27 10/17/2022
4.7.0 25 09/23/2022
4.7.0-preview3.19551.4 27 09/21/2022
4.7.0-preview2.19523.17 25 09/22/2022
4.7.0-preview1.19504.10 27 09/23/2022
4.6.0 25 09/22/2022
4.6.0-rc1.19456.4 31 10/17/2022
4.6.0-preview9.19421.4 29 09/24/2022
4.6.0-preview9.19416.11 32 09/24/2022
4.6.0-preview8.19405.3 30 09/21/2022
4.6.0-preview7.19362.9 30 10/17/2022
4.6.0-preview6.19303.8 26 09/21/2022
4.6.0-preview6.19264.9 22 09/25/2022
4.6.0-preview5.19224.8 22 09/22/2022
4.6.0-preview4.19212.13 24 09/23/2022
4.6.0-preview3.19128.7 34 09/22/2022