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

適用於