VpnCredential Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |