NetworkConnectivityLevel NetworkConnectivityLevel NetworkConnectivityLevel NetworkConnectivityLevel NetworkConnectivityLevel Enum


Defines the level of connectivity currently available.

public : enum class NetworkConnectivityLevel
enum class winrt::Windows::Networking::Connectivity::NetworkConnectivityLevel : int32_t
public enum NetworkConnectivityLevel
Public Enum NetworkConnectivityLevel
var value = Windows.Networking.Connectivity.NetworkConnectivityLevel.constrainedInternetAccess;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ConstrainedInternetAccess ConstrainedInternetAccess ConstrainedInternetAccess ConstrainedInternetAccess ConstrainedInternetAccess 2

Limited internet access.

This value indicates captive portal connectivity, where local access to a web portal is provided, but access to the Internet requires that specific credentials are provided via the portal. This level of connectivity is generally encountered when using connections hosted in public locations (e.g. coffee shops and book stores).


This doesn't guarantee detection of a captive portal. UWP apps should also test if the captive portal can be reached using a URL for the captive portal, or by attempting access to a public web site which will then redirect to the captive portal when Windows reports LocalAccess as the current NetworkConnectivityLevel.

InternetAccess InternetAccess InternetAccess InternetAccess InternetAccess 3

Local and Internet access.

LocalAccess LocalAccess LocalAccess LocalAccess LocalAccess 1

Local network access only.

None None None None None 0

No connectivity.


For an example of how these values are used to indicate connection changes, see Quickstart: Managing connection events and changes in availability.

See also