The following code lists all WiFi adapters (see https://learn.microsoft.com/en-us/uwp/api/windows.devices.wifi.wifiadapter.findalladaptersasync?view=winrt-22621#windows-devices-wifi-wifiadapter-findalladaptersasync ):
var result = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(WiFiAdapter.GetDeviceSelector());
foreach (var adapter in result)
{
System.Console.WriteLine("Adapter: " + adapter.Id + ", " + adapter.Name + ", " + adapter.ToString());
}
But the adapter.Id
is some cryptic string and adapter.Name
returns the Windows machine name. Is there a way to get a human readable representation of the WiFi adapter name?
Regards,
Console.WriteLine("Adapter: " + adapter.Id + ", " + adapter.Name + ", " + adapter.ToString());
Please Try Console.Writeline();?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.