🌐
System.Net.NetworkInformation
Provides classes that enable you to query network interface and IP address information.
Classes
IPAddressInformationclass IPAddressInformation
Provides information about an IP address.
NetworkInterfaceclass NetworkInterface
Represents a network interface on a local computer.
UnicastIPAddressInformationclass UnicastIPAddressInformation
Provides details about a unicast IP address assigned to a network interface.
GatewayIPAddressInformationclass GatewayIPAddressInformation
Provides information about the IP address of a default gateway.
Interfaces
IIPAddressInformationinterface IIPAddressInformation
Provides details about an IP address, including its address family and whether it is valid.
INetworkInterfaceinterface INetworkInterface
Provides basic information about a network interface.
Enums
NetworkInterfaceTypeenum NetworkInterfaceType
Specifies the type of network interface.
Members
- Ethernet
- Wireless80211
- Loopback
- Tunnel
- Other
OperationalStatusenum OperationalStatus
Specifies the operational status of a network interface.
Members
- Up
- Down
- Testing
- Unknown
- Dormant
- NotPresent
- LowerLayerDown
Structs
IPAddressCollectionstruct IPAddressCollection
A collection of IP addresses.
NetworkInterfaceCollectionstruct NetworkInterfaceCollection
A collection of network interfaces.