API Reference
Class
Network
High‑level accessors for network inventory on a machine (adapters and addressing).
Inheritance
- Object
- Network
Methods
public static List<NetworkAdapterInfo> Get(String computer = null) #Returns:
List<NetworkAdapterInfo>Gets network adapter information for the specified computer.
Parameters
- computer System.String = null
- Target host name or null for local.
public static Task<List<NetworkAdapterInfo>> GetAsync(String computer = null, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<List<NetworkAdapterInfo>>Asynchronously gets network adapter information for the specified computer.
Parameters
- computer System.String = null
- Target host name or null for local.
- timeout System.Nullable{System.TimeSpan} = null
- Optional timeout.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object