Network​Connectivity​Level Network​Connectivity​Level Network​Connectivity​Level Network​Connectivity​Level Enum


Defines the level of connectivity currently available.

public : enum class NetworkConnectivityLevelpublic enum NetworkConnectivityLevelPublic Enum NetworkConnectivityLevel// You can use this enum in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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


ConstrainedInternetAccess ConstrainedInternetAccess ConstrainedInternetAccess ConstrainedInternetAccess

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. Windows Store app s 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

Local and Internet access.

LocalAccess LocalAccess LocalAccess LocalAccess

Local network access only.

None None None None

No connectivity.

See Also