Connection Info
Through the static NetworkInformation class, you can discover details about all current network connections. You can also be notified of any changes via its NetworkStatusChanged property. For example, NetworkInformation’s GetConnectionProfiles method returns a collection of ConnectionProfiles, which have methods that expose the cost of the connection (including whether the user is roaming or over the data limit) and how much of the connection is used. You can use information like this to warn a user who is about to download a large file through your app while on a costly network. However, for some scenarios in which you already have StorageFile(s), checking IsAvailable is much simpler than manually examining the current connection ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access