VpnRouteAssignment 类

定义

表示分配给 VPN 通道的路由列表,用于正确的流量流和重定向。

public ref class VpnRouteAssignment sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnRouteAssignment final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class VpnRouteAssignment final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnRouteAssignment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnRouteAssignment
Public NotInheritable Class VpnRouteAssignment
继承
Object Platform::Object IInspectable VpnRouteAssignment
属性

Windows 要求

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

构造函数

VpnRouteAssignment()

允许 VPN 插件在 VPN 通道上创建路由流量策略集。

属性

ExcludeLocalSubnets

获取或设置物理基础结构网络(如本地子网)是否应始终免除通过 VPN 接口流动。

Ipv4ExclusionRoutes

获取或设置不应通过 VPN 接口发送流量的 IPv4 路由的列表。

Ipv4InclusionRoutes

获取或设置 IPv4 路由的列表,该路由应通过 VPN 接口发送流量。

Ipv6ExclusionRoutes

获取或设置不应通过 VPN 接口发送流量的 IPv6 路由的列表。

Ipv6InclusionRoutes

获取或设置 IPv6 路由的列表,该路由应始终通过 VPN 接口发送流量。

适用于