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的全名。

适用于