LanIdentifier LanIdentifier LanIdentifier LanIdentifier Class

Definition

Represents physical identification data for a specific NetworkAdapter object.

public sealed class LanIdentifierpublic sealed class LanIdentifierPublic NotInheritable Class LanIdentifierpublic sealed class LanIdentifier
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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.

Properties

InfrastructureId InfrastructureId InfrastructureId InfrastructureId

Gets a LanIdentifierData object containing locality identification information for the network adapter's connection.

public LanIdentifierData InfrastructureId { get; }public LanIdentifierData InfrastructureId { get; }Public ReadOnly Property InfrastructureId As LanIdentifierDatapublic LanIdentifierData InfrastructureId { get; }
Value
LanIdentifierData LanIdentifierData LanIdentifierData LanIdentifierData

Location information for the network adapter providing connectivity for the connection.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

NetworkAdapterId NetworkAdapterId NetworkAdapterId NetworkAdapterId

Gets the adapter GUID that identifies the network adapter to associate with the locality information.

public Guid NetworkAdapterId { get; }public Guid NetworkAdapterId { get; }Public ReadOnly Property NetworkAdapterId As Guidpublic Guid NetworkAdapterId { get; }
Value
System.Guid System.Guid System.Guid System.Guid

The adapter ID for the network adapter associated with the LanIdentifier information.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PortId PortId PortId PortId

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

public LanIdentifierData PortId { get; }public LanIdentifierData PortId { get; }Public ReadOnly Property PortId As LanIdentifierDatapublic LanIdentifierData PortId { get; }
Value
LanIdentifierData LanIdentifierData LanIdentifierData LanIdentifierData

The port ID information for the network adapter.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)