Share via


AppWindow.PersistedStateId Property

Definition

Gets or sets a string that identifies this window for tracking and saving state.

public:
 property Platform::String ^ PersistedStateId { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PersistedStateId();

void PersistedStateId(winrt::hstring value);
public string PersistedStateId { get; set; }
var string = appWindow.persistedStateId;
appWindow.persistedStateId = string;
Public Property PersistedStateId As String

Property Value

String

Platform::String

winrt::hstring

A string that identifies this window for tracking and saving state.

Remarks

This identifier is used by the shell when the window moves or changes size so that the system can recreate a window with the same experience at a later time or in another session.

Applies to