System.Net.NetworkInformation.NetworkInterface Members

The members of System.Net.NetworkInformation.NetworkInterface are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Net.NetworkInformation.NetworkInterface class.

Public Properties

[read-only]
abstract
Descriptionstring.

Gets the description of the interface.

[read-only]
abstract
Idstring.

Gets the identifier of the network adapter.

[read-only]
abstract
IsReceiveOnlybool.

Gets a bool value that indicates whether the network interface is set to only receive data packets.

[read-only]
static
LoopbackInterfaceIndexint.

Gets the index of the IPv4 loopback interface.

[read-only]
abstract
Namestring.

Gets the name of the network adapter.

[read-only]
abstract
NetworkInterfaceTypeNetworkInterfaceType.

Gets the interface type.

[read-only]
abstract
OperationalStatusOperationalStatus.

Gets the current operational state of the network connection.

[read-only]
abstract
Speedlong.

Gets the speed of the network interface.

[read-only]
abstract
SupportsMulticastbool.

Gets a bool value that indicates whether the network interface is enabled to receive multicast packets.

Public Methods

static
GetAllNetworkInterfaces() : NetworkInterface[]

Returns objects that describe the network interfaces on the local computer.

abstract
GetIPProperties() : IPInterfaceProperties

Returns an object that describes the configuration of this network interface.

abstract
GetIPv4Statistics() : IPv4InterfaceStatistics

Gets the IPv4 statistics for this System.Net.NetworkInformation.NetworkInterface instance.

static
GetIsNetworkAvailable() : bool

Indicates whether any network connection is available.

abstract
GetPhysicalAddress() : PhysicalAddress

Returns the Media Access Control (MAC) or physical address for this adapter.

abstract
Supports(NetworkInterfaceComponent) : bool

Gets a bool value that indicates whether the interface supports the specified protocol.