Dela via


VpnCredential Class

Definition

Represents the credentials requested and provided by the platform. This class holds username, password, PIN, OTP, and any additional PIN or certificate to which access has been granted.

public ref class VpnCredential sealed : IVpnCredential
/// [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 VpnCredential final : IVpnCredential
[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 VpnCredential : IVpnCredential
Public NotInheritable Class VpnCredential
Implements IVpnCredential
Inheritance
Object Platform::Object IInspectable VpnCredential
Attributes
Implements

Windows requirements

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

Properties

AdditionalPin

Gets an additional PIN provided by the user, typically used when requesting a credential type of username, password, and PIN.

CertificateCredential

Gets the certificate to which we were granted access for use in the VPN connection.

OldPasswordCredential

Gets the previous credential the user used to log on to the VPN server, as in the case of a password change.

PasskeyCredential

Gets the current password credential used by the user to log on to the VPN server.

Applies to

See also