NetworkConnectivityLevel NetworkConnectivityLevel NetworkConnectivityLevel NetworkConnectivityLevel Enum

Defines the level of connectivity currently available.

Syntax

Declaration

public enum NetworkConnectivityLevelpublic enum NetworkConnectivityLevelPublic Enum NetworkConnectivityLevelpublic enum NetworkConnectivityLevel

Remarks

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

Fields

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

Note

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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Networking.Connectivity.dll