-
-
Notifications
You must be signed in to change notification settings - Fork 0
101.Network Interface Card Information
The NicScan class provides access to detailed information about network interfaces installed on the current system.
It can be used to retrieve hardware information, network configuration details, IP addressing data, traffic statistics, and adapter capabilities through a single API.
- Windows
- Linux
- macOS (OSX)
Platform support depends on the availability of network interface information provided by the underlying operating system.
Create an instance of NicScan before retrieving network interface information.
var scanner = new NicScan(); Use the NicExtract() method to retrieve all available network interfaces.
var scanner = new NicScan();
foreach (NicResult nic in scanner.NicExtract())
{
Console.WriteLine(nic.Name);
}
|
|
|
|
|
Thrown when required network interface information is invalid or cannot be retrieved. try
{
var result = scanner.NicExtract();
}
catch (NicException ex) {
Console.WriteLine(ex.Message);
} |
Thrown when could not detect any network interface. try
{
var result = scanner.NicExtract();
}
catch (NicScanFailedException ex) {
Console.WriteLine(ex.Message);
} |
- Some properties may vary depending on the operating system.
- Virtual adapters may expose different information than physical adapters.
- Interface statistics are provided by the operating system and may not be available on all platforms.
- Network interface information can change during application execution.
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.
|
|
|