In Windows 10 UWP app how do I detect if the current internet connection is Wifi or Cellular?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Other than just getting the connectivity (that others have mentioned) you can also handle metered connections better.
How to manage metered network cost constraints
See the networking demo at GitHub.
In UWP you can check network connectivity using the IsWlanConnectionProfile or IsWwanConnectionProfile properties.
An example would be:
I hope this helps.