语言

LaunchActivatedEventArgs 类

定义

提供 Application.OnLaunched 事件的事件信息。

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
继承
Object Platform::Object IInspectable LaunchActivatedEventArgs
属性

注解

Windows 应用 SDK应用中不支持这些Arguments属性UWPLaunchActivatedEventArgs。

可以通过调用以下方法检索当前进程的命令行参数:

属性

名称 说明
Arguments

获取在启动期间传递给应用程序的参数。

UWPLaunchActivatedEventArgs

获取Windows。UWP 应用的 ApplicationModel.Activation.LaunchActivatedEventArgs。 请勿使用。

适用于