IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs Interface

Provides common properties for all activation types.

Syntax

Declaration

public interface IActivatedEventArgspublic interface IActivatedEventArgsPublic Interface IActivatedEventArgs

Remarks

Do not implement this interface.

Properties summary

Gets the reason that this app is being activated.

Gets the execution state of the app before this activation.

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

Properties

  • Kind
    Kind
    Kind
    Kind

    Gets the reason that this app is being activated.

    public ActivationKind Kind { get; }public ActivationKind Kind { get; }Public ReadOnly Property Kind As ActivationKind

    Property Value

  • PreviousExecutionState
    PreviousExecutionState
    PreviousExecutionState
    PreviousExecutionState

    Gets the execution state of the app before this activation.

    public ApplicationExecutionState PreviousExecutionState { get; }public ApplicationExecutionState PreviousExecutionState { get; }Public ReadOnly Property PreviousExecutionState As ApplicationExecutionState

    Property Value

    Remarks

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

  • 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; }public SplashScreen SplashScreen { get; }Public ReadOnly Property SplashScreen As SplashScreen

    Property Value

    Remarks

    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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.ApplicationModel.Activation.dll