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

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.

public : static IAsyncOperation<ConnectionSession> AcquireConnectionAsync(CellularApnContext cellularApnContext)
public static IAsyncOperation<ConnectionSession> AcquireConnectionAsync(CellularApnContext cellularApnContext)
Public Static Function AcquireConnectionAsync(cellularApnContext As CellularApnContext) As IAsyncOperation( Of ConnectionSession )
Windows.Networking.Connectivity.ConnectivityManager.acquireConnectionAsync(cellularApnContext).done( /* Your success and error handlers */ );
Parameters
cellularApnContext
CellularApnContext CellularApnContext CellularApnContext CellularApnContext

Provides specific details about the APN.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl
See Also

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

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

public : static void AddHttpRoutePolicy(RoutePolicy routePolicy)
public static void AddHttpRoutePolicy(RoutePolicy routePolicy)
Public Static Function AddHttpRoutePolicy(routePolicy As RoutePolicy) As void
Windows.Networking.Connectivity.ConnectivityManager.addHttpRoutePolicy(routePolicy);
Parameters
routePolicy
RoutePolicy RoutePolicy RoutePolicy RoutePolicy

Indicates the policy for traffic routing.

See Also

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

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

public : static void RemoveHttpRoutePolicy(RoutePolicy routePolicy)
public static void RemoveHttpRoutePolicy(RoutePolicy routePolicy)
Public Static Function RemoveHttpRoutePolicy(routePolicy As RoutePolicy) As void
Windows.Networking.Connectivity.ConnectivityManager.removeHttpRoutePolicy(routePolicy);
Parameters
See Also