ApplicationView.ClearPersistedState(String) ApplicationView.ClearPersistedState(String) ApplicationView.ClearPersistedState(String) ApplicationView.ClearPersistedState(String) ApplicationView.ClearPersistedState(String) Method

Definition

Clears any properties the system has saved for the view with the specified identifier for the given application.

public : static void ClearPersistedState(Platform::String key)
static void ClearPersistedState(winrt::hstring key) const;
public static void ClearPersistedState(String key)
Public Shared Sub ClearPersistedState(key As String)
Windows.UI.ViewManagement.ApplicationView.clearPersistedState(key);

Parameters

key
String String String

The PersistedStateId for the view to be cleared.

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 this identifier 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.