ApplicationView.TryConsolidateAsync ApplicationView.TryConsolidateAsync ApplicationView.TryConsolidateAsync ApplicationView.TryConsolidateAsync ApplicationView.TryConsolidateAsync Method

Definition

Tries to close the current app view. This method is a programmatic equivalent to a user initiating a close gesture for the app view.

public : IAsyncOperation<Platform::Boolean> TryConsolidateAsync()
IAsyncOperation<bool> TryConsolidateAsync() const;
public IAsyncOperation<bool> TryConsolidateAsync()
Public Function TryConsolidateAsync() As IAsyncOperation(Of bool)
Windows.UI.ViewManagement.ApplicationView.tryConsolidateAsync().done( /* Your success and error handlers */ );

Returns

true if the app views are consolidated; otherwise, false.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)