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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…