Share via


MvcRazorParser Konstruktor

Definition

Initialisiert eine neue Instanz von 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)

Parameter

parser
RazorParser

Die RazorParser , aus der Eigenschaften kopiert werden sollen.

inheritedChunkTrees
IReadOnlyList<ChunkTree>

Die IReadOnlyList<T>s, die von analysierten Seiten von _ViewImports-Dateien geerbt werden.

defaultInheritedChunks
IReadOnlyList<Chunk>

Das IReadOnlyList<T> standardmäßig von allen Razor-Seiten in der Anwendung geerbt.

modelExpressionTypeName
String

Der vollständige Name des Modellausdrucks Type.

Gilt für: