ConnectivityManager class

Applies to Windows and Windows Phone

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.

Syntax


var connectivityManager = Windows.Networking.Connectivity.ConnectivityManager;

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The ConnectivityManager class has these types of members:

Methods

The ConnectivityManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
AcquireConnectionAsync Establishes a connection to a specific access point on a network. The request is defined using a CellularApnContext object.
AddHttpRoutePolicy Specifies a RoutePolicy that the Http stack (WinInet) will follow when routing traffic.
RemoveHttpRoutePolicy Removes a previously specified RoutePolicy from the Http stack (WinInet).

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft. All rights reserved.