-
-
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.
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);Operating System PropertyDescriptionOSNameName of the operating systemOSVersionVersion of the operating systemOSArchitectureArchitecture of the OS (x64/x86/ARM)PlatformUnderlying platform identifier Runtime Information PropertyDescriptionFrameworkDescription.NET runtime descriptionProcessArchitectureArchitecture of the current processIs64BitOSIndicates whether OS is 64-bitIs64BitProcessIndicates whether process is 64-bitProcessorCountNumber of logical processors System Environment PropertyDescriptionMachineNameName of the machineUserNameCurrent logged-in userUserDomainNameDomain or workgroup nameUserProfilePath to user profile directorySystemDirectoryOS system directoryCurrentDirectoryCurrent working directoryTempPathTemporary files directory Memory Information PropertyDescriptionWorkingSetCurrent process working set (memory usage) Exceptions This API does not throw any exceptions under normal conditions. All values are retrieved using safe system calls with fallback handling where necessary. Notes 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.
|
|
|