VpnRoute VpnRoute VpnRoute VpnRoute Class

Definition

Represents a route relative to the VPN channel. It is composed of an address and a prefix size to identify the subnet being routed. The route can then be either included or excluded from the VPN channel scope.

public : sealed class VpnRoute : IVpnRoutepublic sealed class VpnRoute : IVpnRoutePublic NotInheritable Class VpnRoute Implements IVpnRoute// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
networkingVpnProvider

Constructors

VpnRoute(HostName, Byte) VpnRoute(HostName, Byte) VpnRoute(HostName, Byte) VpnRoute(HostName, Byte)

Constructs a VpnRoute object.

public : VpnRoute(HostName address, Byte prefixSize)public VpnRoute(HostName address, Byte prefixSize)Public Sub New(address As HostName, prefixSize As Byte)// This API is not available in Javascript.
Parameters
address
HostName HostName HostName HostName

The ID or the address of the subnet under the route control.

prefixSize
Byte Byte Byte Byte

The size (in bits) to be considered by the subnet.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
networkingVpnProvider

Properties

Address Address Address Address

Gets or sets the ID or the address of the subnet under the route control.

public : HostName Address { get; set; }public HostName Address { get; set; }Public ReadWrite Property Address As HostName// This API is not available in Javascript.
Value
HostName HostName HostName HostName

The ID or the address of the subnet under the route control.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
networkingVpnProvider

PrefixSize PrefixSize PrefixSize PrefixSize

Gets or sets the size (in bits) to be considered by the subnet..

public : byte PrefixSize { get; set; }public byte PrefixSize { get; set; }Public ReadWrite Property PrefixSize As byte// This API is not available in Javascript.
Value
byte byte byte byte

The size (in bits) to be considered by the subnet.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
networkingVpnProvider