VpnManagementAgent.ConnectProfileAsync(IVpnProfile) 方法

定义

连接到现有的 VPN 配置文件。

public:
 virtual IAsyncOperation<VpnManagementErrorStatus> ^ ConnectProfileAsync(IVpnProfile ^ profile) = ConnectProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> ConnectProfileAsync(IVpnProfile const& profile);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> ConnectProfileAsync(IVpnProfile profile);
function connectProfileAsync(profile)
Public Function ConnectProfileAsync (profile As IVpnProfile) As IAsyncOperation(Of VpnManagementErrorStatus)

参数

profile
IVpnProfile

VpnProfile 对象。

返回

指示错误状态的枚举值。

属性

Windows 要求

应用功能
networkingVpnProvider

适用于