WebUIApplication WebUIApplication WebUIApplication WebUIApplication WebUIApplication Class


Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Enables an app to receive notifications related to the lifetime of the app.

public : static class WebUIApplication
static struct winrt::Windows::UI::WebUI::WebUIApplication
public static class WebUIApplication
Public Shared Class WebUIApplication
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The system creates this object when it runs the app.


: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX)



EnablePrelaunch(Boolean) EnablePrelaunch(Boolean) EnablePrelaunch(Boolean) EnablePrelaunch(Boolean) EnablePrelaunch(Boolean)

Specifies whether pre-launching is enabled.

RequestRestartAsync(String) RequestRestartAsync(String) RequestRestartAsync(String) RequestRestartAsync(String) RequestRestartAsync(String)

Attempts to programatically restart the application.

RequestRestartForUserAsync(User, String) RequestRestartForUserAsync(User, String) RequestRestartForUserAsync(User, String) RequestRestartForUserAsync(User, String) RequestRestartForUserAsync(User, String)

Requests that the system restarts the app in the context of a specific user.


Activated Activated Activated Activated Activated

Occurs when the app is activated.

EnteredBackground EnteredBackground EnteredBackground EnteredBackground EnteredBackground

Occurs when the app has begins running in the background (no UI is shown for the app).

LeavingBackground LeavingBackground LeavingBackground LeavingBackground LeavingBackground

Occurs when the app is about to leave the background and before the app's UI is shown.

Navigated Navigated Navigated Navigated Navigated

Occurs when the app is navigating.

Resuming Resuming Resuming Resuming Resuming

Occurs when the app is resuming.

Suspending Suspending Suspending Suspending Suspending

Occurs when the app is suspending.

See Also