Share via


VpnForegroundActivatedEventArgs Class

Definition

Arguments passed with the Activated event (see Application.OnActivated) when your VPN app is activated in the foreground.

public ref class VpnForegroundActivatedEventArgs sealed : IActivatedEventArgsWithUser
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class VpnForegroundActivatedEventArgs final : IActivatedEventArgsWithUser
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class VpnForegroundActivatedEventArgs : IActivatedEventArgsWithUser
Public NotInheritable Class VpnForegroundActivatedEventArgs
Implements IActivatedEventArgsWithUser
Inheritance
Object Platform::Object IInspectable VpnForegroundActivatedEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)
App capabilities
networkingVpnProvider

Properties

ActivationOperation

Gets an object representing a VPN foreground operation.

When you're done handling a foreground operation, you must call the Complete method of this VpnForegroundActivationOperation object, passing in a ValueSet of values that you want to be returned to the IVpnPlugin.Connect call. See VpnChannel.ActivateForeground.

Kind

Gets the reason that this app is being activated.

PreviousExecutionState

Gets the execution state that the app was in prior to this activation.

ProfileName

Gets the name of the VPN profile that is active.

SharedContext

Gets the set of values that the VPN plug-in provided when it activated your VPN foreground app. See VpnChannel.ActivateForeground.

SplashScreen

Gets the splash screen object that provides information about the transition from the splash screen to the activated app.

User

Gets the user that the app was activated for. Also see IActivatedEventArgsWithUser.User.

Applies to