Uredi

Deli z drugimi prek


System.Net.NetworkInformation Namespace

Provides access to network traffic data, network address information, and notification of address changes for the local computer. The namespace also contains classes that implement the Ping utility. You can use Ping and related classes to check whether a computer is reachable across the network.

Classes

GatewayIPAddressInformation

Represents the IP address of the network gateway. This class cannot be instantiated.

GatewayIPAddressInformationCollection

Stores a set of GatewayIPAddressInformation types.

IcmpV4Statistics

Provides Internet Control Message Protocol for IPv4 (ICMPv4) statistical data for the local computer.

IcmpV6Statistics

Provides Internet Control Message Protocol for Internet Protocol version 6 (ICMPv6) statistical data for the local computer.

IPAddressCollection

Stores a set of IPAddress types.

IPAddressInformation

Provides information about a network interface address.

IPAddressInformationCollection

Stores a set of IPAddressInformation types.

IPGlobalProperties

Provides information about the network connectivity of the local computer.

IPGlobalStatistics

Provides Internet Protocol (IP) statistical data.

IPInterfaceProperties

Provides information about network interfaces that support Internet Protocol version 4 (IPv4) or Internet Protocol version 6 (IPv6).

IPInterfaceStatistics

Provides Internet Protocol (IP) statistical data for an network interface on the local computer.

IPv4InterfaceProperties

Provides information about network interfaces that support Internet Protocol version 4 (IPv4).

IPv4InterfaceStatistics

Provides statistical data for a network interface on the local computer.

IPv6InterfaceProperties

Provides information about network interfaces that support Internet Protocol version 6 (IPv6).

MulticastIPAddressInformation

Provides information about a network interface's multicast address.

MulticastIPAddressInformationCollection

Stores a set of MulticastIPAddressInformation types.

NetworkAvailabilityEventArgs

Provides data for the NetworkAvailabilityChanged event.

NetworkChange

Allows applications to receive notification when the Internet Protocol (IP) address of a network interface, also called a network card or adapter, changes.

NetworkInformationException

The exception that is thrown when an error occurs while retrieving network information.

NetworkInformationPermission

Controls access to network information and traffic statistics for the local computer. This class cannot be inherited.

NetworkInformationPermissionAttribute

Allows security actions for NetworkInformationPermission to be applied to code using declarative security.

NetworkInterface

Provides configuration and statistical information for a network interface.

PhysicalAddress

Provides the Media Access Control (MAC) address for a network interface (adapter).

Ping

Allows an application to determine whether a remote computer is accessible over the network.

PingCompletedEventArgs

Provides data for the PingCompleted event.

PingException

The exception that is thrown when a Send or SendAsync method calls a method that throws an exception.

PingOptions

Used to control how Ping data packets are transmitted.

PingReply

Provides information about the status and data resulting from a Send or SendAsync operation.

TcpConnectionInformation

Provides information about the Transmission Control Protocol (TCP) connections on the local computer.

TcpStatistics

Provides Transmission Control Protocol (TCP) statistical data.

UdpStatistics

Provides User Datagram Protocol (UDP) statistical data.

UnicastIPAddressInformation

Provides information about a network interface's unicast address.

UnicastIPAddressInformationCollection

Stores a set of UnicastIPAddressInformation types.

Enums

DuplicateAddressDetectionState

Specifies the current state of an IP address.

IPStatus

Reports the status of sending an Internet Control Message Protocol (ICMP) echo message to a computer.

NetBiosNodeType

Specifies the Network Basic Input/Output System (NetBIOS) node type.

NetworkInformationAccess

Specifies permission to access information about network interfaces and traffic statistics.

NetworkInterfaceComponent

Specifies the Internet Protocol versions that are supported by a network interface.

NetworkInterfaceType

Specifies types of network interfaces.

OperationalStatus

Specifies the operational state of a network interface.

PrefixOrigin

Specifies how an IP address network prefix was located.

ScopeLevel

The scope level for an IPv6 address.

SuffixOrigin

Specifies how an IP address host suffix was located.

TcpState

Specifies the states of a Transmission Control Protocol (TCP) connection.

Delegates

NetworkAddressChangedEventHandler

References one or more methods to be called when the address of a network interface changes.

NetworkAvailabilityChangedEventHandler

References one or more methods to be called when the availability of the network changes.

PingCompletedEventHandler

Represents the method that will handle the PingCompleted event of a Ping object.

See also