共用方式為


MvcRazorHost.GetInheritedChunkTreeResults(String) 方法

定義

找出並剖析套用至指定 sourceFileName 以建立 ChunkTreeResult s 的 _ViewImports.cshtml 檔案。

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繼承的 。

適用於