Share via


PageContent.GetPageRoot(Boolean) 方法

定義

載入並傳回 FixedPage 內容項目。

public:
 System::Windows::Documents::FixedPage ^ GetPageRoot(bool forceReload);
public System.Windows.Documents.FixedPage GetPageRoot (bool forceReload);
member this.GetPageRoot : bool -> System.Windows.Documents.FixedPage
Public Function GetPageRoot (forceReload As Boolean) As FixedPage

參數

forceReload
Boolean

如果要一律重新載入 FixedPage (即使先前已經過載入和快取),則為 true;如果只有在無快取版本時才會載入 FixedPage,則為 false

傳回

FixedPage

此頁面之視覺化樹狀結構的根項目。

備註

GetPageRoot 會執行 的 FixedPage 同步載入和剖析。

注意

GetPageRootAsync使用 而非 GetPageRoot ,以避免在載入時 FixedPage 封鎖執行緒。

適用於