PLP-SystemInfo
2.1.0
dotnet add package PLP-SystemInfo --version 2.1.0
NuGet\Install-Package PLP-SystemInfo -Version 2.1.0
<PackageReference Include="PLP-SystemInfo" Version="2.1.0" />
paket add PLP-SystemInfo --version 2.1.0
#r "nuget: PLP-SystemInfo, 2.1.0"
// Install PLP-SystemInfo as a Cake Addin
#addin nuget:?package=PLP-SystemInfo&version=2.1.0
// Install PLP-SystemInfo as a Cake Tool
#tool nuget:?package=PLP-SystemInfo&version=2.1.0
PLP-SystemInfo
A C# Library for getting several SystemInfos!
PLP-SystemInfo is compatible with the following frameworks:
- .NET 5 or higher
- .Net Core 2 - 3.1
- .Net Standard 2.0 & 2.1
- .Net Framework 4.6.1 or higher
Dependencies:
- System.Management
- System.Win32
Download
PLP-SystemInfo is available as a NuGet Package
Documentation
The package contains in the namespace PLP_SystemInfo
one class for reading system information, SystemInfo.cs
and 3 more namespaces: Collections
, ComponentInfo
and Models
,
The namespaces Collections
and Models
are largely ignored for use. They only provide the corresponding classes for the outputs.
PLP_SystemInfo.SystemInfo
The class SystemInfo
contains mainly methods to read general system values.
Each method has a return value which simplifies the usage.
using PLP_SystemInfo;
string userName = SystemInfo.UserName;
//Retruns the username of the current user
string machineName = SystemInfo.MachineName;
//Retruns the name of the machine.
bool b = SystemInfo.IsDarkModeEnabled;
// Returns a bool value that reflects whether the Windows darkmode is enabled
string s = SystemInfo.GetWindowsAccentColor();
// Returns the Windows accent color as HEX value.
Color c = SystemInfo.GetAccentColor();
// Returns the Windows accent color as a Color value.
PLP_SystemInfo.ComponentInfo.*
The namespace PLP_SystemInfo.ComponentInfo
contains different classes to read out the most important PC components.
BoardInfo.cs
using PLP_SystemInfo.ComponentInfo;
using PLP_SystemInfo.Models;
Board b = BoardInfo.GetMotherboard();
// Returns an object of type **Board** with manufacturer and model.
BIOS bios = BoardInfo.GetBIOSInfo();
// Returns an object of type **BIOS** with manufacturer and version.
OSInfo.cs
using PLP_SystemInfo.ComponentInfo;
string os = OSInfo.GetOperatingSystemInfo();
// Returns a string with OS name and architecture.
ProcessorInfo.cs
using PLP_SystemInfo.ComponentInfo;
using PLP_SystemInfo.Collections;
ProcessorCollection processors = ProcessorInfo.GetProcessors();
// Returns a collection of type **Processor** containing information such as name, architecture, cores, threads, cache and clock speed.
RamInfo.cs
using PLP_SystemInfo.ComponentInfo;
using PLP_SystemInfo.Collections;
RamCollection ram = RamInfo.GetRamInfo();
// Returns a collection of type **RAM** containing information for each installed ram module such as manufacturer, frequency, voltage and capacity.
long totalRam = RamInfo.GetInstalledRAMSize();
// Returns a long value of the installed GB of RAM.
double d1 = RamInfo.GetTotalUsableRam();
// Returns the total useable ram in GB.
double d2 = RamInfo.GetHardwareReservedRam();
// Returns the harware reserved ram in MB.
double d3 = RamInfo.GetRamInUse();
// Returns the used ram in GB.
double d4 = RamInfo.GetAvailableRam();
// Returns the available ram.
GraphicsInfo.cs
using PLP_SystemInfo.ComponentInfo;
using PLP_SystemInfo.Collections;
GraphicsCollection graphics = GraphicsInfo.GetGraphicscardInfo();
// Returns a collection of type **GraphicsCard** containing information such as name and driver version.
To get the information from the collections, simply use a foreach loop, e.g:
foreach (var item in <yourCollection>)
{
Console.WriteLine(item.<Property>);
}
License
This software is released under the Apache 2.0 license
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Management (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.