다음을 통해 공유


VpnManagementAgent.ConnectProfileWithPasswordCredentialAsync 메서드

정의

지정된 암호 자격 증명 집합을 사용하여 VPN 프로필에 연결합니다.

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)

매개 변수

profile
IVpnProfile

VpnProfile 개체입니다.

passwordCredential
PasswordCredential

사용자가 VPN 서버에 로그온하는 데 사용하는 현재 암호입니다.

반환

오류 상태 나타내는 열거형 값입니다.

특성

Windows 요구 사항

앱 기능
networkingVpnProvider

적용 대상