Share via


RoutePolicy(ConnectionProfile, HostName, DomainNameType) Constructor

Definition

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

public:
 RoutePolicy(ConnectionProfile ^ connectionProfile, HostName ^ hostName, DomainNameType type);
 RoutePolicy(ConnectionProfile const& connectionProfile, HostName const& hostName, DomainNameType const& type);
public RoutePolicy(ConnectionProfile connectionProfile, HostName hostName, DomainNameType type);
function RoutePolicy(connectionProfile, hostName, type)
Public Sub New (connectionProfile As ConnectionProfile, hostName As HostName, type As DomainNameType)

Parameters

connectionProfile
ConnectionProfile

The connection profile

hostName
HostName

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

type
DomainNameType

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

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.

Applies to