MvcRazorHost.GetInheritedChunkTreeResults(String) 方法

定义

查找并分析应用于给定 sourceFileName 的 _ViewImports.cshtml 文件以创建 ChunkTreeResult

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Razor::Directives::ChunkTreeResult ^> ^ GetInheritedChunkTreeResults(System::String ^ sourceFileName);
public System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkTreeResult> GetInheritedChunkTreeResults (string sourceFileName);
member this.GetInheritedChunkTreeResults : string -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Razor.Directives.ChunkTreeResult>
Public Function GetInheritedChunkTreeResults (sourceFileName As String) As IReadOnlyList(Of ChunkTreeResult)

参数

sourceFileName
String

要为其查找 _ViewImports.cshtml 的 Razor 文件的路径。

返回

继承的 ChunkTreeResult

适用于