共用方式為


VpnInterfaceId 類別

定義

表示介面標識碼,用於 IPv6 位址的建構和指派給 VPN 介面。 此類別中包含的識別碼會填入 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
繼承
Object Platform::Object IInspectable VpnInterfaceId
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
networkingVpnProvider

建構函式

VpnInterfaceId(Byte[])

允許 VPN 外掛程式建構此物件,並在 VpnChannel.Start 方法中使用。

方法

GetAddressInfo(Byte[])

取得用來做為介面標識碼之位元組集的位址。

適用於