ApplicationView.ClearAllPersistedState ApplicationView.ClearAllPersistedState ApplicationView.ClearAllPersistedState ApplicationView.ClearAllPersistedState ApplicationView.ClearAllPersistedState Method

Definition

Clears any properties the system has saved for any view PersistedStateId for the given application.

public : static void ClearAllPersistedState()
static void ClearAllPersistedState() const;
public static void ClearAllPersistedState()
Public Shared Sub ClearAllPersistedState()
Windows.UI.ViewManagement.ApplicationView.clearAllPersistedState();

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Remarks

If a view with a PersistedStateId still exists in the app at the time of calling this method, the system will save state for this identifier when that view is updated or closed.