CommandLineActivationOperation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |