Dela via


IVpnRouteFactory.CreateVpnRoute(HostName, Byte) Method

Definition

Creates VpnRoute objects.

public:
 VpnRoute ^ CreateVpnRoute(HostName ^ address, byte prefixSize);
VpnRoute CreateVpnRoute(HostName const& address, byte const& prefixSize);
public VpnRoute CreateVpnRoute(HostName address, byte prefixSize);
function createVpnRoute(address, prefixSize)
Public Function CreateVpnRoute (address As HostName, prefixSize As Byte) As VpnRoute

Parameters

address
HostName

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

prefixSize
Byte

byte

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

Returns

Represents a route relative to the VPN channel. It is composed of an address and a prefix size to identify the subnet being routed.

Windows requirements

App capabilities
networkingVpnProvider

Applies to