Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The connection profile API, which is part of Windows.Networking.Connectivity.NetworkInformation, provides connectivity, usage, and data plan information for established network connections. The connection profiles associated with a given mobile account can be retrieved by using the MobileBroadbandAccount API. Med API:et för anslutningsprofil kan din mobilapp köra frågor mot flera egenskaper för nätverksanslutningen i gränssnittet för mobilt bredband, inklusive följande:
GetNetworkConnectivityLevel Indicates whether the network is connected and if the network provides internet connectivity.
GetSignalBars Indicates the current number of signal bars displayed by the Windows UI for the connection.
GetNetworkUsageAsync Provides bytes sent, bytes received, and connectivity times for a connection profile.
Det här API:et innehåller också en statusändringshändelse som meddelar programmet när anslutningen i operatörens gränssnitt har ändrats. For more info about the NetworkStatusChanged event, see NetworkStatusChangedEventHandler delegate.
Related topics
Lista över Windows Runtime-API:er för mobilt bredband