Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RoutePolicy class

The RoutePolicy class is used to represent the traffic routing policy for a special PDP Context/APN.

Syntax


var routePolicy = new Windows.Networking.Connectivity.RoutePolicy();

Members

The RoutePolicy class has these types of members:

Constructors

The RoutePolicy class has these constructors.

ConstructorDescription
RoutePolicy Creates an instance of RoutePolicy using the defined connection profile and host name values.

 

Methods

The RoutePolicy class inherits methods from the Object class (C#/VB/C++).

Properties

The RoutePolicy class has these properties.

PropertyAccess typeDescription

ConnectionProfile

Read-onlyRetrieves the connection profile for an access point connection.

HostName

Read-onlyProvides the host name for the route policy to the special PDP context.

HostNameType

Read-onlyIndicates if the HostName is a suffix or a fully qualified domain name reference. Possible values are defined by DomainNameType.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

AddHttpRoutePolicy
RemoveHttpRoutePolicy
Object

 

 

Show:
© 2016 Microsoft