API Reference
Class
NetworkInventoryQuery
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
- 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
- Target host name.
- timeout System.TimeSpan
- Timeout for individual WMI queries.
- ct System.Threading.CancellationToken
- Cancellation token.
Returns
List of adapters with IP/DNS/suffix details.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object