CommandLineActivationOperation CommandLineActivationOperation CommandLineActivationOperation CommandLineActivationOperation CommandLineActivationOperation Class

Definition

Provides info about the activation of the app such as what arguments were provided and the current directory path.

public : sealed class CommandLineActivationOperation
struct winrt::Windows::ApplicationModel::Activation::CommandLineActivationOperation
public sealed class CommandLineActivationOperation
Public NotInheritable Class CommandLineActivationOperation
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

The app supplies the exit code which is passed back to the caller.

Properties

Arguments Arguments Arguments Arguments Arguments

Gets the command-line arguments passed to the app when it was activated.

CurrentDirectoryPath CurrentDirectoryPath CurrentDirectoryPath CurrentDirectoryPath CurrentDirectoryPath

Gets the directory path from which the app was activated from the command line.

ExitCode ExitCode ExitCode ExitCode ExitCode

Sets the exit code for the app that was launched from the command line.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets a deferral object for this operation.