Share via


VpnManagementAgent.UpdateProfileFromObjectAsync(IVpnProfile) Method

Definition

Updates a virtual private network (VPN) profile based on an input object.

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)

Parameters

profile
IVpnProfile

A VPN profile object—an object that implements the IVpnProfile interface, such as VpnNativeProfile or VpnPlugInProfile.

Returns

An enum value indicating the error status.

Attributes

Windows requirements

App capabilities
networkingVpnProvider

Remarks

A Universal Windows Platform (UWP) VPN app can update only per-app profiles; it can't update any other VPN profile. An app that attempts to modify a per-user profile can instead create or modify a per-app profile; the new per-app profile will have the same name as the per-user profile.

Applies to