Dela via


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 ref class ConnectivityManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ConnectivityManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class ConnectivityManager
Public Class ConnectivityManager
Inheritance
Object Platform::Object IInspectable ConnectivityManager
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Methods

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

Specifies a RoutePolicy that the Http stack (WinInet) will follow when routing traffic. Routing policies are only available for cellular profiles

RemoveHttpRoutePolicy(RoutePolicy)

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

Applies to