次の方法で共有


PS_VpnConnectionRoute class

The PS_VpnConnectionRoute class provides methods to add or remove routes to be plumbed for a VPN profile.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[ClassVersion("1.0"), dynamic, provider("VpnClientPSProvider"), AMENDMENT]
class PS_VpnConnectionRoute
{
  string DestinationPrefix;
  uint32 RouteMetric;
  uint16 AddressFamily;
};

Members

The PS_VpnConnectionRoute class has these types of members:

Methods

The PS_VpnConnectionRoute class has these methods.

Method Description
Add Adds a route to be plumbed for a VPN profile.
Remove Removes a route from the routes to be plumbed for a VPN profile.

Properties

The PS_VpnConnectionRoute class has these properties.

AddressFamily

Data type: uint16

Access type: Read-only

Indicates whether the address family for this route is IPv4 or IPv6.

IPv4 (2)

The address family is IPv4.

IPv6 (23)

The address family is IPv6.

DestinationPrefix

Data type: string

Access type: Read/write

Qualifiers: key

Destination prefix of the route to be added.

RouteMetric

Data type: uint32

Access type: Read/write

Metric of the route being added.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\Client
MOF
VPNClientPSProvider.mof
DLL
VPNClientPSProvider.dll