RoutePolicy 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
- 继承
- 属性
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 定义。 |