Compartilhar via


VpnRoute Classe

Definição

Representa uma rota relativa ao canal VPN. Ele é composto por um endereço e um tamanho de prefixo para identificar a sub-rede que está sendo roteada. Em seguida, a rota pode ser incluída ou excluída do escopo do canal VPN.

public ref class VpnRoute sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnRouteFactory, 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 VpnRoute 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(Windows.Networking.Vpn.IVpnRouteFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VpnRoute final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnRouteFactory), 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 VpnRoute
[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(typeof(Windows.Networking.Vpn.IVpnRouteFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnRoute
Public NotInheritable Class VpnRoute
Herança
Object Platform::Object IInspectable VpnRoute
Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)
Funcionalidades do aplicativo
networkingVpnProvider

Construtores

VpnRoute(HostName, Byte)

Constrói um objeto VpnRoute.

Propriedades

Address

Obtém ou define a ID ou o endereço da sub-rede sob o controle de rota.

PrefixSize

Obtém ou define o tamanho (em bits) a ser considerado pela sub-rede..

Aplica-se a