Windows 10 UWP - detect if the current internet connection is Wifi or Cellular?
问题 In Windows 10 UWP app how do I detect if the current internet connection is Wifi or Cellular? 回答1: In UWP you can check network connectivity using the IsWlanConnectionProfile or IsWwanConnectionProfile properties. An example would be: var temp = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile(); if (temp.IsWlanConnectionProfile) { // its wireless }else if (temp.IsWwanConnectionProfile) { // its mobile } I hope this helps. 回答2: Other than just getting the