Provides configuration and statistical information for a network interface.
| C# | Visual Basic |
public sealed class NetworkInterface
Public NotInheritable Class NetworkInterface
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Description |
Gets the description of the interface.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetAllNetworkInterfaces()()()() |
Returns objects that describe the network interfaces on the local computer.
| |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetIPProperties()()()() |
Returns an object that describes the configuration of this network interface.
| |
| GetIPv4Statistics()()()() |
Gets the IPv4 statistics.
| |
| GetIsNetworkAvailable()()()() |
Indicates whether any network connection is available.
| |
| GetPhysicalAddress()()()() |
Returns the Media Access Control (MAC) address for this adapter.
| |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Name |
Gets the name of the network adapter.
| |
| NetworkInterfaceType |
Gets the interface type.
| |
| OperationalStatus |
Gets the current operational state of the network connection.
| |
| Speed |
Gets the speed of the network interface.
| |
| ToString()()()() | (Inherited from Object.) |
This class encapsulates data for network interfaces, also known as adapters, on the local computer.
You do not create instances of this class; the GetAllNetworkInterfaces()()()() method returns an array that contains one instance of this class for each network interface on the local computer.
| Platforms Supported | |
|---|---|
| Windows Mobile | Windows Mobile Version 5.0 and later |
| Windows Embedded Compact | Windows CE .NET 4.1 and later |
| Object | |
| NetworkInterface | |