Partager via


VpnInterfaceId Classe

Définition

Représente un ID d’interface utilisé dans la construction et l’affectation d’une adresse IPv6 à l’interface VPN. L’ID contenu dans cette classe remplit la partie ID d’interface de l’adresse 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
Héritage
Object Platform::Object IInspectable VpnInterfaceId
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
Fonctionnalités de l’application
networkingVpnProvider

Constructeurs

VpnInterfaceId(Byte[])

Permet au plug-in VPN de construire cet objet et de l’utiliser dans la méthode VpnChannel.Start.

Méthodes

GetAddressInfo(Byte[])

Obtient l’adresse représentée en tant qu’ensemble d’octets à utiliser comme ID d’interface.

S’applique à