Sdílet prostřednictvím


MvcRazorParser Konstruktor

Definice

Inicializuje novou instanci .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)

Parametry

parser
RazorParser

Vlastnost RazorParser , ze které se mají kopírovat.

inheritedChunkTrees
IReadOnlyList<ChunkTree>

S IReadOnlyList<T>, které jsou zděděné z parsovaných stránek ze souborů _ViewImports.

defaultInheritedChunks
IReadOnlyList<Chunk>

Ve IReadOnlyList<T> výchozím nastavení zdědí všechny stránky Razor Pages v aplikaci.

modelExpressionTypeName
String

Úplný název výrazu Typemodelu .

Platí pro