When I was researching .NET MAUI, I didn't find an object that can receive process parameters, does anyone know?
/// Interaction logic for App.xaml
public partial class App : Application
protected override void OnStartup(StartupEventArgs e)
var args = e.Args;
For example, in wpf, you can get the parameters passed by the process through the args of Onstartup. How to get it in MAUI?
protected override Window CreateWindow(IActivationState activationState)
var state = activationState as ActivationState;
var args1 = state.LaunchActivatedEventArgs;
//var args = Environment.GetCommandLineArgs();
return new Window(new MainPage(args1.Arguments));