-
-
Notifications
You must be signed in to change notification settings - Fork 0
102.Operating System Information
The OsScan class provides a unified API for retrieving detailed information about the current operating system and runtime environment. It abstracts low-level platform queries into a single structured model that can be used for diagnostics, logging, system profiling, and environment inspection.
- Windows
- Linux
- macOS (OSX)
Platform support depends on the availability of operating system information provided by the underlying operating system.
To retrieve system information, create an instance of OsScan.
var scanner = new OsScan();Use the OsExtract() method to obtain a complete snapshot of the current system environment.
var os = new OsScan().OsExtract();
Console.WriteLine(os.OSName);
|
|
|
|
This API does not throw any exceptions under normal conditions.
All values are retrieved using safe system calls with fallback handling where necessary.
- Values are snapshot-based and may change during runtime.
- On some restricted environments (e.g., containers or sandboxed systems), certain properties may return default or limited values.
- This module is designed for diagnostics and environment awareness, not for system modification.
Foxtension is an evolving cross-platform utility framework. The API surface, behavior, and available modules may change across versions.
For the latest updates, documentation improvements, and release notes, please refer to the official repository.
- Project: Foxtension
- Type: Cross-platform .NET utility framework
- License: Apache 2.0
- Maintainer: (cmd_er / Teamemories)
- This documentation reflects the current stable version of Foxtension.
- Some APIs may behave differently across operating systems.
- Experimental features may change or be removed in future releases without prior notice.
|
|
|