ApplicationView.TryConsolidateAsync Method
Definition
Important
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.
Tries to hide the current app view. This method is a programmatic equivalent to a user closing the app.
public:
virtual IAsyncOperation<bool> ^ TryConsolidateAsync() = TryConsolidateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryConsolidateAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryConsolidateAsync();
function tryConsolidateAsync()
Public Function TryConsolidateAsync () As IAsyncOperation(Of Boolean)
Returns
true if the app views are consolidated; otherwise, false.
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
Consolidating an app view doesn't close it but rather hides it from the Windows shell, whether the user closed the app or this method is called programmatically. It can still be shown programmatically by the app using the various methods of ApplicationViewSwitcher. To close the app view permanently, call CoreWindow.Close.