Route​Policy Route​Policy Route​Policy Class

Definition

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

public sealed class RoutePolicy : IRoutePolicypublic sealed class RoutePolicy : IRoutePolicyPublic NotInheritable Class RoutePolicy Implements IRoutePolicy
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

RoutePolicy(ConnectionProfile, HostName, DomainNameType) RoutePolicy(ConnectionProfile, HostName, DomainNameType) RoutePolicy(ConnectionProfile, HostName, DomainNameType)

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

public RoutePolicy(ConnectionProfile connectionProfile, HostName hostName, DomainNameType type)public RoutePolicy(ConnectionProfile connectionProfile, HostName hostName, DomainNameType type)Public Sub New(connectionProfile As ConnectionProfile, hostName As HostName, type As DomainNameType)
Parameters
connectionProfile
ConnectionProfile ConnectionProfile ConnectionProfile

The connection profile

hostName
HostName HostName HostName

The host name for the route policy to the special PDP context.

type
DomainNameType DomainNameType DomainNameType

The domain type of hostName when the HostNameType value indicates a domain name.

Attributes

Remarks

A host name can be:

ValueDescription
Domain NameAll the traffic destined to this domain name will be routed to special PDP Context. If you specify Contoso.com, for example, all traffic going to *.Contoso.com will be routed to special PDP Context.
IP AddressAll the traffic destined to this IP Address will be routed to special PDP Context.
Not specifiedWindows will route all traffic to special PDP context.

Properties

ConnectionProfile ConnectionProfile ConnectionProfile

Retrieves the connection profile for an access point connection.

public ConnectionProfile ConnectionProfile { get; }public ConnectionProfile ConnectionProfile { get; }Public ReadOnly Property ConnectionProfile As ConnectionProfile
Value
ConnectionProfile ConnectionProfile ConnectionProfile

The associated connection profile.

Attributes

HostName HostName HostName

Provides the host name for the route policy to the special PDP context.

public HostName HostName { get; }public HostName HostName { get; }Public ReadOnly Property HostName As HostName
Value
HostName HostName HostName

The host name.

Attributes

HostNameType HostNameType HostNameType

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

public DomainNameType HostNameType { get; }public DomainNameType HostNameType { get; }Public ReadOnly Property HostNameType As DomainNameType
Value
DomainNameType DomainNameType DomainNameType

The domain type of the HostName object.

Attributes