ChunkInheritanceUtility.GetInheritedChunkTreeResults(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.
Gets an ordered IReadOnlyList<T> of parsed ChunkTrees and
file paths for each _ViewImports
that is applicable to the page located at
pagePath
. The list is ordered so that the ChunkTreeResult's
ChunkTree for the _ViewImports
closest to the
pagePath
in the file system appears first.
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)
Parameters
- pagePath
- String
The path of the page to locate inherited chunks for.
Returns
A IReadOnlyList<T> of parsed _ViewImports
ChunkTrees and their file paths.
Remarks
The resulting IReadOnlyList<T> is ordered so that the result for a _ViewImport closest to the application root appears first and the _ViewImport closest to the page appears last i.e. [ /_ViewImport, /Views/_ViewImport, /Views/Home/_ViewImport ]