System.Net.NetworkInformation.NetworkInterface.GetPhysicalAddress Method

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

Syntax

public abstract PhysicalAddress GetPhysicalAddress ()

Returns

A System.Net.NetworkInformation.PhysicalAddress object that contains the physical address.

Remarks

The object returned by this method contains an address that is appropriate to the media used to transport data at the data link layer. For example, on an Ethernet network, this method returns the Ethernet hardware address.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0