Aracılığıyla paylaş


VpnRouteAssignment Class

Definition

Represents the list of routes assigned to the VPN channel for the correct flow and redirection of traffic.

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
Inheritance
Object Platform::Object IInspectable VpnRouteAssignment
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
networkingVpnProvider

Constructors

VpnRouteAssignment()

Allows a VPN plug-in to create the set of routing traffic policy to be set on a VPN channel.

Properties

ExcludeLocalSubnets

Gets or sets whether the physical infrastructure network, such as the local subnet, should always be exempted from flowing over the VPN interface.

Ipv4ExclusionRoutes

Gets or sets a list of IPv4 routes that should not sent traffic over the VPN interface.

Ipv4InclusionRoutes

Gets or sets a list of IPv4 routes that should send traffic over the VPN interface.

Ipv6ExclusionRoutes

Gets or sets a list of IPv6 routes that should not sent traffic over the VPN interface.

Ipv6InclusionRoutes

Gets or sets a list of IPv6 routes that should always sent traffic over the VPN interface.

Applies to