LaunchActivatedEventArgs 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 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
- 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:
- [C#] Environment.GetCommandLineArgs() (requires full trust to execute)
- [C++] GetCommandLineA function (processenv.h)
Properties
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. |