Share via

ApplicationView.ClearAllPersistedState Method


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

 static void ClearAllPersistedState();
 static void ClearAllPersistedState();
public static void ClearAllPersistedState();
function clearAllPersistedState()
Public Shared Sub ClearAllPersistedState ()

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)


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.

Applies to