System.Net.NetworkInformation Namespace
Namespace: System.Net.NetworkInformation
Assembly: System.Net.Primitives.dll
The System.Net.NetworkInformation namespace provides classes that enable you to retrieve information about network interfaces, Internet Protocol (IP) addresses, and network traffic statistics.
Classes
-
IcmpV4Statistics
Provides statistical data for the Internet Control Message Protocol (ICMP) version 4.
public sealed class IcmpV4Statistics -
IcmpV6Statistics
Provides statistical data for the Internet Control Message Protocol (ICMP) version 6.
public sealed class IcmpV6Statistics -
IpAddressInformation
Provides information about an IP address.
public abstract class IpAddressInformation -
IpAddressInformationCollection
Represents a collection of
IpAddressInformationobjects.public class IpAddressInformationCollection : ICollection, IEnumerable , IEnumerable -
IpGlobalProperties
Provides network configuration information for the local computer.
public abstract class IpGlobalProperties -
IpInterfaceProperties
Provides configuration information for an IP interface.
public abstract class IpInterfaceProperties -
IpNetworkChange
Notifies applications of IP address changes.
public static class IpNetworkChange -
IpStatistics
Provides statistical data for IP traffic.
public abstract class IpStatistics -
IpV4InterfaceProperties
Provides IPv4 configuration information for a network interface.
public sealed class IpV4InterfaceProperties : IpInterfaceProperties -
IpV4InterfaceStatistics
Provides IPv4 traffic statistics for a network interface.
public sealed class IpV4InterfaceStatistics : IpStatistics -
IpV4Statistics
Provides IPv4 statistical data for the local computer.
public sealed class IpV4Statistics : IpStatistics -
IpV6InterfaceProperties
Provides IPv6 configuration information for a network interface.
public sealed class IpV6InterfaceProperties : IpInterfaceProperties -
IpV6InterfaceStatistics
Provides IPv6 traffic statistics for a network interface.
public sealed class IpV6InterfaceStatistics : IpStatistics -
IpV6Statistics
Provides IPv6 statistical data for the local computer.
public sealed class IpV6Statistics : IpStatistics -
MacAddress
Represents a Media Access Control (MAC) address.
public struct MacAddress -
NetworkAddressChangedEventHandler
Represents the method that will handle the
NetworkAddressChangedevent.public delegate void NetworkAddressChangedEventHandler(object sender, EventArgs e) -
NetworkInterface
Represents a network interface on the local computer.
public abstract class NetworkInterface -
NetworkInterfaceComponent
Specifies the network interface components for which protocol statistics are retrieved.
public enum NetworkInterfaceComponent -
NetworkInterfaceFactory
Provides methods to create and retrieve
NetworkInterfaceobjects.public static class NetworkInterfaceFactory -
NetworkInterfaceType
Specifies the type of a network interface.
public enum NetworkInterfaceType -
Ping
Sends an ICMP echo request message to a specified host and returns information about the response.
public class Ping : IDisposable -
PingException
Represents errors that occur when sending an ICMP echo request.
public class PingException : Exception -
PingReply
Stores the reply status and round-trip time for an ICMP echo request.
public sealed class PingReply -
PingOptions
Specifies options for sending ICMP echo request messages.
public class PingOptions -
PhysicalAddress
Represents the Media Access Control (MAC) address of a network interface.
public sealed class PhysicalAddress -
SocketAddressOption
Specifies socket options for IP sockets.
public enum SocketAddressOption -
TcpStatistics
Provides Transmission Control Protocol (TCP) statistical data for the local computer.
public sealed class TcpStatistics -
UdpStatistics
Provides User Datagram Protocol (UDP) statistical data for the local computer.
public sealed class UdpStatistics