مشاركة عبر


WebUIApplication Class

Definition

Enables an app to receive notifications related to the lifetime of the app.

public ref class WebUIApplication abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class WebUIApplication final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public static class WebUIApplication
Public Class WebUIApplication
Inheritance
Object Platform::Object IInspectable WebUIApplication
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The system creates this object when it runs the app.

Note

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).

Version history

Windows version SDK version Value added
1607 14393 EnablePrelaunch
1607 14393 EnteredBackground
1607 14393 LeavingBackground
1709 16299 RequestRestartAsync
1709 16299 RequestRestartForUserAsync
1809 17763 BackgroundActivated
1809 17763 NewWebUIViewCreated

Methods

EnablePrelaunch(Boolean)

Specifies whether pre-launching is enabled.

RequestRestartAsync(String)

Attempts to programatically restart the application.

RequestRestartForUserAsync(User, String)

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

Events

Activated

Occurs when the app is activated.

BackgroundActivated

Invoked when the application is activated in the background.

EnteredBackground

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

LeavingBackground

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

Navigated

Occurs when the app is navigating.

NewWebUIViewCreated

Occurs when the system creates a new view for the app.

Resuming

Occurs when the app is resuming.

Suspending

Occurs when the app is suspending.

Applies to

See also