LaunchActivatedEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 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
- 繼承
- 屬性
備註
Arguments和 UWPLaunchActivatedEventArgs 屬性在 Windows 應用程式 SDK 應用程式中不被支援。
你可以透過呼叫以下方式取得當前程序的命令列參數:
- [C#] Environment.GetCommandLineArgs() (執行需完全信任)
- [C++] GetCommandLineA function (processenv.h)
屬性
| 名稱 | Description |
|---|---|
| Arguments |
取得啟動時傳給應用程式的參數。 |
| UWPLaunchActivatedEventArgs |
拿到 Windows。ApplicationModel.Activation.LaunchActivatedEventArgs 用於 UWP 應用程式。 請勿使用。 |