VpnCredentialType 枚举

定义

指定 VPN 平台可以请求的凭据类型。

public enum class VpnCredentialType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class VpnCredentialType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum VpnCredentialType
var value = Windows.Networking.Vpn.VpnCredentialType.usernamePassword
Public Enum VpnCredentialType
继承
VpnCredentialType
属性

Windows 要求

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

字段

ProtectedCertificate 5

表示受保护证书的凭据类型。

SmartCard 4

表示智能卡的凭据类型。

UnProtectedCertificate 6

表示证书的凭据类型。

UsernameOtpPin 1

表示用户名的凭据类型,以及 PIN 或 OTP。

UsernamePassword 0

表示“用户名”和“密码”类型的凭据。

UsernamePasswordAndPin 2

表示用户名、密码和 PIN 的凭据类型。

UsernamePasswordChange 3

表示密码更改。 将收集当前密码、新密码和新密码的确认。

适用于