TestimoX

API Reference

Class

NetworkInventoryQuery

Namespace ComputerX.Network
Assembly ComputerX
Modifiers static

Queries detailed network adapter information via WMI/CIM (addresses, DNS, suffixes, speed).

Inheritance

  • Object
  • NetworkInventoryQuery

Methods

public static List<NetworkAdapterInfo> Get(String computer) #
Returns: List<NetworkAdapterInfo>

Synchronously collects adapter details for a computer using Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration.

Parameters

computer System.String requiredposition: 0
Target host name.

Returns

List of adapters with IP/DNS/suffix details.

public static async Task<List<NetworkAdapterInfo>> GetAsync(String computer, TimeSpan timeout, CancellationToken ct) #
Returns: Task<List<NetworkAdapterInfo>>

Asynchronously collects adapter details for a computer with a timeout and cancellation token.

Parameters

computer System.String requiredposition: 0
Target host name.
timeout System.TimeSpan requiredposition: 1
Timeout for individual WMI queries.
ct System.Threading.CancellationToken requiredposition: 2
Cancellation token.

Returns

List of adapters with IP/DNS/suffix details.