NetworkInformation.GetLanIdentifiers Method

Definition

Gets an array of LanIdentifier objects that contain locality information for each NetworkAdapter object that currently connected to a network.

public:
 static IVectorView<LanIdentifier ^> ^ GetLanIdentifiers();
 static IVectorView<LanIdentifier> GetLanIdentifiers();
public static IReadOnlyList<LanIdentifier> GetLanIdentifiers();
function getLanIdentifiers()
Public Shared Function GetLanIdentifiers () As IReadOnlyList(Of LanIdentifier)

Returns

IVectorView<LanIdentifier>

IReadOnlyList<LanIdentifier>

An array of LanIdentifier objects.

Remarks

For examples of how to retrieve LanIdentifier objects and access the information they represent, see How to retrieve network adapter and locality information.

Applies to