MvcRazorParser 建構函式

定義

初始化 MvcRazorParser 的新執行個體。

public:
 MvcRazorParser(Microsoft::AspNetCore::Razor::Parser::RazorParser ^ parser, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^> ^ inheritedChunkTrees, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::Chunks::Chunk ^> ^ defaultInheritedChunks, System::String ^ modelExpressionTypeName);
public MvcRazorParser (Microsoft.AspNetCore.Razor.Parser.RazorParser parser, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.ChunkTree> inheritedChunkTrees, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk> defaultInheritedChunks, string modelExpressionTypeName);
new Microsoft.AspNetCore.Mvc.Razor.MvcRazorParser : Microsoft.AspNetCore.Razor.Parser.RazorParser * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.ChunkTree> * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Chunks.Chunk> * string -> Microsoft.AspNetCore.Mvc.Razor.MvcRazorParser
Public Sub New (parser As RazorParser, inheritedChunkTrees As IReadOnlyList(Of ChunkTree), defaultInheritedChunks As IReadOnlyList(Of Chunk), modelExpressionTypeName As String)

參數

parser
RazorParser

RazorParser 從中複製屬性的 。

inheritedChunkTrees
IReadOnlyList<ChunkTree>

IReadOnlyList<T>繼承自剖析頁面的 _ViewImports 檔案。

defaultInheritedChunks
IReadOnlyList<Chunk>

IReadOnlyList<T>預設為應用程式中所有 Razor 頁面所繼承的 。

modelExpressionTypeName
String

模型運算式 Type 的完整名稱。

適用於