How to check if your Windows packaged app was launched from a StartupTask in C# and VB
How to check if app was launched from a StartupTask
For .Net 5 and above
For .Net Framework 4.5 and above and .Net Core 3.0 and 3.1
Checking how the app was launched
Did this guide help you? Do you have anything to add? Do you have any questions? Let us know in the comments! Also, if this guide did help you and you use an AdBlocker and you want to support us, consider disabling it for this site - if you do, it will be greatly appreciated!