Compartilhar via


MvcRazorParser Construtor

Definição

Inicializa uma nova instância de 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)

Parâmetros

parser
RazorParser

O do RazorParser qual copiar as propriedades.

inheritedChunkTrees
IReadOnlyList<ChunkTree>

Os IReadOnlyList<T>s herdados de páginas analisadas de _ViewImports arquivos.

defaultInheritedChunks
IReadOnlyList<Chunk>

O IReadOnlyList<T> herdado por padrão por todas as páginas razor no aplicativo.

modelExpressionTypeName
String

O nome completo da expressão Typede modelo .

Aplica-se a