VpnManagementAgent.AddProfileFromObjectAsync(IVpnProfile) 方法

定义

基于 VpnProfile 输入对象创建新的 VPN 配置文件。

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

参数

profile
IVpnProfile

VpnProfile 对象。

返回

指示错误状态的枚举值。

属性

Windows 要求

应用功能
networkingVpnProvider

适用于