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:
 virtual IAsyncOperation<bool> ^ TryConsolidateAsync() = TryConsolidateAsync;
IAsyncOperation<bool> TryConsolidateAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryConsolidateAsync();
function tryConsolidateAsync()
Public Function TryConsolidateAsync () As IAsyncOperation(Of Boolean)

Returns

IAsyncOperation<Boolean>

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

Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to