Condividi tramite


VpnInterfaceId Classe

Definizione

Rappresenta un ID di interfaccia usato nella costruzione e nell'assegnazione di un indirizzo IPv6 all'interfaccia VPN. L'ID contenuto in questa classe riempie la parte id dell'interfaccia dell'indirizzo IPv6.

public ref class VpnInterfaceId sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnInterfaceIdFactory, 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 VpnInterfaceId 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.IVpnInterfaceIdFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VpnInterfaceId final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnInterfaceIdFactory), 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 VpnInterfaceId
[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.IVpnInterfaceIdFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnInterfaceId
Public NotInheritable Class VpnInterfaceId
Ereditarietà
Object Platform::Object IInspectable VpnInterfaceId
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)
Funzionalità dell'app
networkingVpnProvider

Costruttori

VpnInterfaceId(Byte[])

Consente al plug-in VPN di costruire questo oggetto e usarlo nel metodo VpnChannel.Start.

Metodi

GetAddressInfo(Byte[])

Ottiene l'indirizzo rappresentato come set di byte da utilizzare come ID interfaccia.

Si applica a