共用方式為


VpnManagementAgent.UpdateProfileFromObjectAsync(IVpnProfile) 方法

定義

根據輸入物件更新虛擬專用網 (VPN) 配置檔。

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

參數

profile
IVpnProfile

VPN 配置檔物件—實作 IVpnProfile 介面的物件,例如 VpnNativeProfileVpnPlugInProfile

傳回

表示錯誤狀態的列舉值。

屬性

Windows 需求

應用程式功能
networkingVpnProvider

備註

通用 Windows 平臺 (UWP) VPN 應用程式只能更新個別應用程式設定檔;它無法更新任何其他 VPN 設定檔。 嘗試修改個別使用者配置檔的應用程式可以改為建立或修改個別應用程式配置檔;新的個別應用程式配置檔將具有與個別使用者配置檔相同的名稱。

適用於