Language

VpnManagementAgent.SetAlwaysOnActiveProfileAsync(IVpnProfile) Method

Definition

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

Parameters

profile
IVpnProfile

Returns

Attributes

Windows requirements

Requirements Description
Device family
Windows 11, version 24H2 (introduced in 10.0.26100.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v19.0)

Applies to