RoutePolicy(ConnectionProfile, HostName, DomainNameType) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
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. |