LanIdentifier class

Applies to Windows and Windows Phone

Represents physical identification data for a specific NetworkAdapter object.

Syntax

Public NotInheritable Class LanIdentifier

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The LanIdentifier class has these types of members:

Methods

The LanIdentifier class inherits methods from the Object class (C#/VB/C++).

Properties

The LanIdentifier class has these properties.

PropertyAccess typeDescription

InfrastructureId

Read-onlyGets a LanIdentifierData object containing locality identification information for the network adapter's connection.

NetworkAdapterId

Read-onlyGets the adapter GUID that identifies the network adapter to associate with the locality information.

PortId

Read-onlyGets a LanIdentifierData object containing the port ID from the Link Layer Discovery Protocol (LLDP) locality information for an Ethernet type network adapter.

 

Remarks

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.

Requirements

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]

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft