NetworkInterface Class
Provides configuration and statistical information for a network interface.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | NetworkInterface() | Initializes a new instance of the NetworkInterface class. |
| Name | Description | |
|---|---|---|
![]() | Description | Gets the description of the interface. |
![]() | Id | Gets the identifier of the network adapter. |
![]() ![]() | IPv6LoopbackInterfaceIndex | Gets the index of the IPv6 loopback interface. |
![]() | IsReceiveOnly | Gets a Boolean value that indicates whether the network interface is set to only receive data packets. |
![]() ![]() | LoopbackInterfaceIndex | Gets the index of the IPv4 loopback interface. |
![]() | 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. |
![]() | SupportsMulticast | Gets a Boolean value that indicates whether the network interface is enabled to receive multicast packets. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() ![]() | GetAllNetworkInterfaces() | Returns objects that describe the network interfaces on the local computer. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetIPProperties() | Returns an object that describes the configuration of this network interface. |
![]() | GetIPStatistics() | Gets the IP statistics for this NetworkInterface instance. |
![]() | GetIPv4Statistics() | Gets the IPv4 statistics for this NetworkInterface instance. |
![]() ![]() | GetIsNetworkAvailable() | Indicates whether any network connection is available. |
![]() | GetPhysicalAddress() | Returns the Media Access Control (MAC) or physical address for this adapter. |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | Supports(NetworkInterfaceComponent) | Gets a Boolean value that indicates whether the interface supports the specified protocol. |
![]() | ToString() | Returns a string that represents the current object.(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.
for executing unmanaged code. Associated enumeration: UnmanagedCode
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



