Connectivity​Manager Connectivity​Manager Connectivity​Manager 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 ConnectivityManagerpublic static class ConnectivityManagerPublic Static Class ConnectivityManager
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)

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 Windows Store 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 )
Parameters
cellularApnContext
CellularApnContext CellularApnContext CellularApnContext

Provides specific details about the APN.

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

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
Parameters
routePolicy
RoutePolicy RoutePolicy RoutePolicy

Indicates the policy for traffic routing.

Attributes
See Also

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
Parameters
routePolicy
RoutePolicy RoutePolicy RoutePolicy

The RoutePolicy to remove.

Attributes
See Also