Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

LaunchActivatedEventArgs Class

Definition

Namespace:
Microsoft.UI.Xaml

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 event information for the Application.OnLaunched event.

public ref class LaunchActivatedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LaunchActivatedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LaunchActivatedEventArgs
Public NotInheritable Class LaunchActivatedEventArgs
Inheritance
Object Platform::Object IInspectable LaunchActivatedEventArgs
Attributes

Remarks

The Arguments and UWPLaunchActivatedEventArgs properties are not supported in Windows App SDK apps.

You can retrieve command-line arguments for the current process by calling:

Properties

Name Description
Arguments

Gets the arguments that are passed to the application during launch.

UWPLaunchActivatedEventArgs

Gets the Windows.ApplicationModel.Activation.LaunchActivatedEventArgs for a UWP app. Do not use.

Applies to


Feedback

Was this page helpful?