다음을 통해 공유


연결 프로필 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. 연결 프로필 API를 사용하면 모바일 광대역 앱이 다음을 포함하여 모바일 광대역 인터페이스에서 네트워크 연결의 여러 속성을 쿼리할 수 있습니다.

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

이 API에는 운영자의 인터페이스에 대한 연결이 변경될 때마다 애플리케이션에 알리는 상태 변경 이벤트도 포함됩니다. For more info about the NetworkStatusChanged event, see NetworkStatusChangedEventHandler delegate.

모바일 광대역 Windows 런타임 API 목록

네트워크 정보 샘플

NetworkStatusChangedEventHandler delegate