简体   繁体   中英

How can a C# Universal Windows Application accept command-line arguments (args)

In an application that is for Windows Desktops, there is a way to accept command-line arguments through Windows Explorer/File Explorer. (args)

In Windows Phone, there is a Files/File Explorer app as well. How can I accept command-line arguments from the Files/File Explorer app? Is it possible?

Note: I am programming for Universal Windows.

Thanks in advance.

you can use at least 2 ways to activate your Universal app :

https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh779670(v=win.10).aspx

  • File association. Your app will be launched when an associated file is launched

https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh779669(v=win.10).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM