RoutePolicy class

Applies to Windows and Windows Phone

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

Attributes

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

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

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

AddHttpRoutePolicy
RemoveHttpRoutePolicy
Object

 

 

Show:
© 2014 Microsoft