Application. Enable Prelaunch(Boolean) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enable or disable the operating system's ability to prelaunch your app.
public: static void EnablePrelaunch(bool value);
static void EnablePrelaunch(bool const& value);
public static void EnablePrelaunch(bool value);
Public Shared Sub EnablePrelaunch (value As Boolean)
True to enable prelaunch for your app; false, otherwise.
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Windows.Foundation.UniversalApiContract (introduced in v3.0)
When available system resources allow, the startup performance of UWP apps is improved by proactively launching the user’s most frequently used UWP apps in the background. A prelaunched app is put into the suspended state shortly after it is launched. When the user invokes the app, the app is resumed by bringing it from the suspended state to the running state--which is faster than launching the app cold.
Windows 10 automatically prelaunched UWP apps. In Windows 10, version 1607, UWP apps must opt-in to be prelaunched. You will typically make this call during the first run of your app although you may call the function multiple times and with different values without harm.