AppWindow.ClearPersistedState(String) 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.
Clears any properties the system has saved for the window with the specified ID for the given application.
public:
static void ClearPersistedState(Platform::String ^ key);
static void ClearPersistedState(winrt::hstring const& key);
public static void ClearPersistedState(string key);
function clearPersistedState(key)
Public Shared Sub ClearPersistedState (key As String)
Parameters
- key
-
String
Platform::String
winrt::hstring
The PersistedStateId for the view to be cleared.
Remarks
If a view with this ID still exists in the app at the time of calling this method, the system will save state for this ID when that view is updated or closed.
Applies to
See also
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla