VpnAppId 类

定义

表示应用程序标识符,可以是文件路径、包系列名称或完全限定的二进制名称(FQBN)字符串。

public ref class VpnAppId sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Vpn.IVpnAppIdFactory, 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 VpnAppId 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.IVpnAppIdFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VpnAppId final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Vpn.IVpnAppIdFactory), 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 VpnAppId
[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.IVpnAppIdFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnAppId
Public NotInheritable Class VpnAppId
继承
Object Platform::Object IInspectable VpnAppId
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
networkingVpnProvider

注解

Win32 应用的应用 ID 是文件路径或完全限定的二进制名称(FQBN)。 对于其他应用,应用 ID 是程序包系列名称。

构造函数

VpnAppId(VpnAppIdType, String)

使用指定的应用 ID 和类型创建 VpnAppId 对象。

属性

Type

获取或设置应用 ID 的类型。

Value

获取或设置应用 ID 的值。

适用于