VpnManagementAgent.ConnectProfileWithPasswordCredentialAsync Method
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.
Connects to a VPN profile using a specified set of password credentials.
public:
virtual IAsyncOperation<VpnManagementErrorStatus> ^ ConnectProfileWithPasswordCredentialAsync(IVpnProfile ^ profile, PasswordCredential ^ passwordCredential) = ConnectProfileWithPasswordCredentialAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> ConnectProfileWithPasswordCredentialAsync(IVpnProfile const& profile, PasswordCredential const& passwordCredential);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> ConnectProfileWithPasswordCredentialAsync(IVpnProfile profile, PasswordCredential passwordCredential);
function connectProfileWithPasswordCredentialAsync(profile, passwordCredential)
Public Function ConnectProfileWithPasswordCredentialAsync (profile As IVpnProfile, passwordCredential As PasswordCredential) As IAsyncOperation(Of VpnManagementErrorStatus)
Parameters
- profile
- IVpnProfile
A VpnProfile object.
- passwordCredential
- PasswordCredential
The current password used by the user to log on to the VPN server.
Returns
An enum value indicating the error status.
- Attributes
Windows requirements
App capabilities |
networkingVpnProvider
|
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for