Aracılığıyla paylaş


WebUICommandLineActivatedEventArgs Class

Definition

Provides information, such as the command-line arguments, when an app is activated from the command line.

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

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

A UWP app may be activated from Start|Run in Windows, from the command line in PowerShell, the DOS command prompt, or from another Win32 process that calls CreateProcess.

To be activated from the command line, your app must register for the "AppExecutionAlias" extension category in its manifest.

Properties

ActivatedOperation

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

Kind

Gets the type of activation that launched the app.

Operation

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

PreviousExecutionState

Gets the execution state of the app before it was activated.

SplashScreen

Gets info about the transition from the splash screen to the activated app.

User

Gets the user that the app was activated for.

Applies to