first real commit

This commit is contained in:
Doug Macintosh
2026-03-08 17:05:59 -04:00
parent d5bc62a4f2
commit 336b0dbb7e
945 changed files with 1083090 additions and 0 deletions

Binary file not shown.

BIN
packages/System.Management.10.0.1/Icon.png vendored Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

70
packages/System.Management.10.0.1/PACKAGE.md vendored Executable file
View File

@@ -0,0 +1,70 @@
## About
<!-- A description of the package and where one can find more documentation -->
Provides access to a rich set of management information and management events about the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure. Not supported on other platforms.
## Key Features
<!-- The key features of this package -->
* Consume Windows Management Instrumentation (WMI) data and events
* High performance extensible event mechanism
## How to Use
<!-- A compelling example on how to use this package with code, as well as any specific guidelines for when to use the package -->
### Retrieve management information
```C#
using System.Management;
// Get the WMI class
ManagementClass managementClass = new("Win32_Processor");
// Loop through the WMI class instances and print the processor information found
foreach (ManagementObject managementObject in managementClass.GetInstances())
{
Console.WriteLine("--- Processor information ---");
Console.WriteLine($"Name: {managementObject["Name"]}");
Console.WriteLine($"Architecture: {managementObject["Architecture"]}");
}
```
### Query management information via the SelectQuery type
```C#
using System.Management;
// Search for win32 services with a stopped state
SelectQuery selectQuery = new("Win32_Service", "State = 'Stopped'");
ManagementObjectSearcher managementObjectSearcher = new(selectQuery);
foreach (ManagementObject service in managementObjectSearcher.Get())
{
Console.WriteLine(service.ToString());
}
```
## Main Types
<!-- The main types provided in this library -->
The main types provided by this library are:
* `System.Management.ManagementClass`
* `System.Management.ManagementObject`
* `System.Management.SelectQuery`
## Additional Documentation
<!-- Links to further documentation. Remove conceptual documentation if not available for the library. -->
* [Conceptual documentation](https://learn.microsoft.com/windows/win32/wmisdk/wmi-start-page)
* [System.Management API documentation](https://learn.microsoft.com/dotnet/api/system.management?view=dotnet-plat-ext-7.0)
* [System.Management.ManagementClass documentation](https://learn.microsoft.com/dotnet/api/system.management.managementclass.-ctor?view=dotnet-plat-ext-7.0)
## Feedback & Contributing
<!-- How to provide feedback on this package and contribute to it -->
System.Management is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime).

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

View File

@@ -0,0 +1,6 @@
<Project InitialTargets="NETStandardCompatError_System_Management_net8_0">
<Target Name="NETStandardCompatError_System_Management_net8_0"
Condition="'$(SuppressTfmSupportBuildWarnings)' == ''">
<Warning Text="System.Management 10.0.1 doesn't support $(TargetFramework) and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set &lt;SuppressTfmSupportBuildWarnings&gt;true&lt;/SuppressTfmSupportBuildWarnings&gt; in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk." />
</Target>
</Project>

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff