-api-id | -api-type |
---|---|
M:Windows.Networking.Vpn.VpnChannel.RequestCredentialsAsync(Windows.Networking.Vpn.VpnCredentialType,System.UInt32,Windows.Security.Cryptography.Certificates.Certificate) |
winrt method |
VPN platform to collect credentials from the user. If user interaction is required to obtain a credential or consent, the platform provides the necessary user interaction. A VPN plug-in must request credentials before using any type of credential, even if the intent is not to invoke user interaction for it.
An enum value indicating the type of credential to collect.
Specifies the values defining whether a requested credential is a retry case, or should be used for single sign on.
See VpnChannelRequestCredentialsOptions for possible values.
A certificate to be used in validating the credential.
An asynchronous retrieval operation on a VpnCredential object containing the main credentials of the requested type, and secondary credentials for change and expiration cases.
RequestCredentialsAsync(VpnCredentialType, UInt32), RequestCredentialsAsync(VpnCredentialType)
networkingVpnProvider