VpnManagementAgent.SetAlwaysOnActiveProfileAsync(IVpnProfile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|