ChunkInheritanceUtility.GetInheritedChunkTreeResults(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得每個適用于位於 pagePath 之頁面的已 ChunkTree 剖析 s 和檔案路徑 _ViewImports 的排序 IReadOnlyList<T> 。 清單已排序, ChunkTreeResultChunkTree_ViewImports 以便先顯示檔案系統中最 pagePath 接近 之 的 。
public:
virtual System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Razor::Directives::ChunkTreeResult ^> ^ GetInheritedChunkTreeResults(System::String ^ pagePath);
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkTreeResult> GetInheritedChunkTreeResults(string pagePath);
abstract member GetInheritedChunkTreeResults : string -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkTreeResult>
override this.GetInheritedChunkTreeResults : string -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkTreeResult>
Public Overridable Function GetInheritedChunkTreeResults (pagePath As String) As IReadOnlyList(Of ChunkTreeResult)
參數
- pagePath
- String
要為其尋找繼承區塊的頁面路徑。
傳回
IReadOnlyList<T>已剖析 _ViewImportsChunkTree 的 和其檔案路徑的 。
備註
結果 IReadOnlyList<T> 會排序,讓最接近應用程式根目錄_ViewImport的結果會先出現,而最接近頁面的_ViewImport最後會出現 [/_ViewImport、/Views/_ViewImport、/Views/Home/_ViewImport ]