Triogap.System.Management.Linq
0.1.0
See the version list below for details.
dotnet add package Triogap.System.Management.Linq --version 0.1.0
NuGet\Install-Package Triogap.System.Management.Linq -Version 0.1.0
<PackageReference Include="Triogap.System.Management.Linq" Version="0.1.0" />
<PackageVersion Include="Triogap.System.Management.Linq" Version="0.1.0" />
<PackageReference Include="Triogap.System.Management.Linq" />
paket add Triogap.System.Management.Linq --version 0.1.0
#r "nuget: Triogap.System.Management.Linq, 0.1.0"
#:package Triogap.System.Management.Linq@0.1.0
#addin nuget:?package=Triogap.System.Management.Linq&version=0.1.0
#tool nuget:?package=Triogap.System.Management.Linq&version=0.1.0
System.Management.Linq
Exposes WMI and system/network management objects as strongly-typed C# classes, enabling LINQ-to-WQL queries for expressive, type-safe access to management data.
Features
- Strongly-typed C# classes for WMI and system/network management objects
- LINQ-to-WQL support for expressive and type-safe queries
- Easy access to management data for .NET developers
Getting Started
Prerequisites
- .NET 8.0 or .NET 9.0 SDK
- Windows OS with Windows Management Instrumentation (WMI) enabled
Installation
Clone the repository:
git clone https://github.com/Triogap/System.Management.Linq.git
Usage
Note: Running WMI queries may require elevated permissions.
Here�s an example of how to check if an explorer process is running on the system:
using System.Management.Linq;
using System.Management.Types.Win32;
var process = ManagementObjects.Get<Process>()
.FirstOrDefault(p => p.Name.StartsWith("Explorer"));
if (process != null)
{
Console.WriteLine($"Explorer process is running with ProcessId: {process.ProcessId}");
}
else
{
Console.WriteLine("Explorer process is not running.");
}
Contributing
Contributions are welcome! Please open issues and submit PRs for improvements or bug fixes.
License
This project is licensed under the MIT License.
Maintained by Triogap
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
-
net8.0-windows7.0
- System.Management (>= 9.0.5)
- Triogap.System.Management.Types (>= 0.1.0)
-
net9.0-windows7.0
- System.Management (>= 9.0.5)
- Triogap.System.Management.Types (>= 0.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of LINQ extensions for System.Management.
Enables LINQ-to-WQL queries for WMI and system management data.
Depends on Triogap.System.Management.Types which includes support for 200+ strongly-typed WMI types in the Win32 namespace (e.g., Win32_Process).