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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro