ConnectivityManager ConnectivityManager ConnectivityManager ConnectivityManager ConnectivityManager Class

Definition

Methods defined by the ConnectivityManager class enable enforcement of traffic routing on a specific network adapter for the specified destination suffix. Once a policy is set using AddHttpRoutePolicy, traffic that matches the policy will either be routed or dropped.

public : static class ConnectivityManager
static struct winrt::Windows::Networking::Connectivity::ConnectivityManager
public static class ConnectivityManager
Public Static Class ConnectivityManager
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

AcquireConnectionAsync(CellularApnContext) AcquireConnectionAsync(CellularApnContext) AcquireConnectionAsync(CellularApnContext) AcquireConnectionAsync(CellularApnContext) AcquireConnectionAsync(CellularApnContext)

Establishes a connection to a specific access point on a network. The request is defined using a CellularApnContext object.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators. Mobile operators must enable the cellularDeviceControl restricted capability to use this API.

AddHttpRoutePolicy(RoutePolicy) AddHttpRoutePolicy(RoutePolicy) AddHttpRoutePolicy(RoutePolicy) AddHttpRoutePolicy(RoutePolicy) AddHttpRoutePolicy(RoutePolicy)

Specifies a RoutePolicy that the Http stack (WinInet) will follow when routing traffic.

RemoveHttpRoutePolicy(RoutePolicy) RemoveHttpRoutePolicy(RoutePolicy) RemoveHttpRoutePolicy(RoutePolicy) RemoveHttpRoutePolicy(RoutePolicy) RemoveHttpRoutePolicy(RoutePolicy)

Removes a previously specified RoutePolicy from the Http stack (WinInet).