Bewerken

Delen via


Connection Profile API

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. The connection profile API allows your mobile broadband app to query several properties of the network connection on the mobile broadband interface, including the following:

  • 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.

This API also includes a status change event that notifies the application whenever connectivity on the operator’s interface has changed. For more info about the NetworkStatusChanged event, see NetworkStatusChangedEventHandler delegate.

List of mobile broadband Windows Runtime APIs

Network Information sample

NetworkStatusChangedEventHandler delegate