Jaa


NetworkInformation.GetLanIdentifiers Method

Definition

Note

Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Important

This API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more info, see Changes to API behavior for Wi-Fi access and location.

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

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