Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RoutePolicy Class

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.

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

public ref class RoutePolicy sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Connectivity.IRoutePolicyFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RoutePolicy final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Connectivity.IRoutePolicyFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class RoutePolicy final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Connectivity.IRoutePolicyFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RoutePolicy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Connectivity.IRoutePolicyFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RoutePolicy
function RoutePolicy(connectionProfile, hostName, type)
Public NotInheritable Class RoutePolicy
Inheritance
Object Platform::Object IInspectable RoutePolicy
Attributes

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

Name Description
RoutePolicy(ConnectionProfile, HostName, DomainNameType)

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

Properties

Name Description
ConnectionProfile

Retrieves the connection profile for an access point connection.

HostName

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

HostNameType

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

Applies to

See also


Feedback

Was this page helpful?