AppWindow.PersistedStateId 属性

定义

获取或设置一个字符串,该字符串标识此窗口用于跟踪和保存状态。

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

属性值

String

Platform::String

winrt::hstring

标识此窗口以跟踪和保存状态的字符串。

注解

当窗口移动或更改大小时,shell 会使用此标识符,以便系统可以在以后或在另一个会话中重新创建具有相同体验的窗口。

适用于