RoutePolicy 类

定义

RoutePolicy 类用于表示特殊 PDP 上下文/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
继承
Object Platform::Object IInspectable RoutePolicy
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

RoutePolicy(ConnectionProfile, HostName, DomainNameType)

使用定义的连接配置文件和主机名值创建 RoutePolicy 的实例。

属性

ConnectionProfile

检索接入点连接的连接配置文件。

HostName

向特殊 PDP 上下文提供路由策略的主机名。

HostNameType

指示 HostName 是后缀还是完全限定的域名引用。 可能的值由 DomainNameType 定义。

适用于

另请参阅