Dela via


VpnCredentialType Enum

Definition

Specifies the types of credentials that can be requested by the VPN platform.

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
Inheritance
VpnCredentialType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
networkingVpnProvider

Fields

Name Value Description
UsernamePassword 0

Represents a credential of type Username and Password.

UsernameOtpPin 1

Represents a credential type of username, and a PIN or OTP.

UsernamePasswordAndPin 2

Represents a credential type of username, password, and PIN.

UsernamePasswordChange 3

Represents a password change. The current password, new password, and a confirmation of the new password will be collected.

SmartCard 4

Represents a credential type of smart card.

ProtectedCertificate 5

Represents a credential type of a protected certificate.

UnProtectedCertificate 6

Represents a credential type of a certificate.

Applies to