IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs Interface


Provides common properties for all activation types.

public : interface IActivatedEventArgs
struct winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs
public interface IActivatedEventArgs
Public Interface IActivatedEventArgs
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Do not implement this interface.


Kind Kind Kind Kind Kind

Gets the reason that this app is being activated.

public : ActivationKind Kind { get; }
ActivationKind Kind();
public ActivationKind Kind { get; }
Public ReadOnly Property Kind As ActivationKind
var activationKind = iActivatedEventArgs.kind;
ActivationKind ActivationKind ActivationKind

One of the enumeration values.

PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState

Gets the execution state of the app before this activation.

public : ApplicationExecutionState PreviousExecutionState { get; }
ApplicationExecutionState PreviousExecutionState();
public ApplicationExecutionState PreviousExecutionState { get; }
Public ReadOnly Property PreviousExecutionState As ApplicationExecutionState
var applicationExecutionState = iActivatedEventArgs.previousExecutionState;


The app uses this information to determine whether it should restore saved state.

SplashScreen SplashScreen SplashScreen SplashScreen SplashScreen

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

public : SplashScreen SplashScreen { get; }
SplashScreen SplashScreen();
public SplashScreen SplashScreen { get; }
Public ReadOnly Property SplashScreen As SplashScreen
var splashScreen = iActivatedEventArgs.splashScreen;
SplashScreen SplashScreen SplashScreen

The splash screen object.


This property is only meaningful when the app is activated under a contract that expects a window to be presented. If the contract doesn't require a window or if the app is being activated for a background task, this call will fail.