RoutePolicy
RoutePolicy
RoutePolicy
RoutePolicy
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// You can use this class in JavaScript.
- 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) 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)// You can use this method in JavaScript.
Parameters
- connectionProfile
- ConnectionProfile ConnectionProfile ConnectionProfile ConnectionProfile
The connection profile
The host name for the route policy to the special PDP context.
The domain type of hostName when the HostNameType value indicates a domain name.
Remarks
A host name can be:
| Value | Description |
|---|---|
| Domain Name | All 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 Address | All the traffic destined to this IP Address will be routed to special PDP Context. |
| Not specified | Windows will route all traffic to special PDP context. |
Properties
ConnectionProfile 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// You can use this property in JavaScript.
The associated connection profile.
HostNameType 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// You can use this property in JavaScript.
The domain type of the HostName object.
- See Also