NetworkConnectivityLevel enumeration

Applies to Windows and Windows Phone

Defines the level of connectivity currently available.

Syntax


var value = Windows.Networking.Connectivity.NetworkConnectivityLevel.none;

Attributes

[Version(0x06020000)]

Members

The NetworkConnectivityLevel enumeration has these members.

MemberValueDescription
None | none0

No connectivity.

LocalAccess | localAccess1

Local network access only.

ConstrainedInternetAccess | constrainedInternetAccess2

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 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 | internetAccess3

Local and Internet access.

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

Quickstart: Managing connection events and changes in availability

 

 

Show:
© 2014 Microsoft