NetworkConnectivityLevel Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the level of connectivity currently available.
public enum class NetworkConnectivityLevel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class NetworkConnectivityLevel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum NetworkConnectivityLevel
var value = Windows.Networking.Connectivity.NetworkConnectivityLevel.none
Public Enum NetworkConnectivityLevel
- Inheritance
-
NetworkConnectivityLevel
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
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 (for example, coffee shops and book stores). Note 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 | 3 | Local and Internet access. |
LocalAccess | 1 | Local network access only. |
None | 0 | No connectivity. |
Remarks
For an example of how these values are used to indicate connection changes, see Quickstart: Managing connection events and changes in availability.
Applies to
See also
Feedback
Submit and view feedback for