CommandLineActivationOperation Class

Definition

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

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

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

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

Properties

Arguments

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

CurrentDirectoryPath

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

ExitCode

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

Methods

GetDeferral()

Gets a deferral object for this operation.

Applies to