Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.21 KB

activationregistrationmanager_registerforstartupactivation_1012908277.md

File metadata and controls

32 lines (19 loc) · 1.21 KB
-api-id -api-type
M:Microsoft.Windows.AppLifecycle.ActivationRegistrationManager.RegisterForStartupActivation(System.String,System.String)
winrt method

Microsoft.Windows.AppLifecycle.ActivationRegistrationManager.RegisterForStartupActivation(System.String,System.String)

-description

Registers to activate the app when when the app is started by the user logging into the Windows OS, either because of a registry key, or because of a shortcut in a well-known startup folder.

-parameters

-param taskId

An app-defined ID that can be used to unregister for startup activations later by using the UnregisterForStartupActivation method.

-param exePath

The path to the executable to be activated. If you pass an empty string, the current exectuable will be activated by default. Typically this parameter is specified if the caller of this method is the app's installer rather than the app itself.

-remarks

-see-also

UnregisterForStartupActivation

-examples