Represents physical identification data for a specific NetworkAdapter object.
var lanIdentifier = NetworkInformation.GetLanIdentifiers();
public sealed class LanIdentifier
Public NotInheritable Class LanIdentifier
public ref class LanIdentifier sealed
- [ DualApiPartition()]
- [ MarshalingBehavior(Agile)]
- [ Version(0x06020000)]
The LanIdentifier class has these types of members:
The LanIdentifier class inherits methods from the Object class (C#/VB/C++).
The LanIdentifier class has these properties.
|Read-only||Gets a LanIdentifierData object containing locality identification information for the network adapter's connection.|
|Read-only||Gets the adapter GUID that identifies the network adapter to associate with the locality information.|
|Read-only||Gets a LanIdentifierData object containing the port ID from the Link Layer Discovery Protocol (LLDP) locality information for an Ethernet type network adapter.|
Location data is expressed either as a BSSID if the network adapter media type is Wireless LAN, or as a tuple <ChassisId, Port Number> if the network adapter type is Ethernet. The data is represented according to the LLDP protocol.
For examples of how to retrieve data represented by a LanIdentifier object, see How to retrieve network adapter and locality information.
Minimum supported client
|Windows 8 [Windows Store apps, desktop apps]|
Minimum supported server
|None supported [Windows Store apps, desktop apps]|
Minimum supported phone
|Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]|