Dela via


CodeGeneratorContext(ChunkGeneratorContext, ErrorSink) Constructor

Definition

Instantiates a new instance of the CodeGeneratorContext object.

public:
 CodeGeneratorContext(Microsoft::AspNetCore::Razor::Chunks::Generators::ChunkGeneratorContext ^ generatorContext, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public CodeGeneratorContext (Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext generatorContext, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
new Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext : Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext * Microsoft.AspNetCore.Razor.ErrorSink -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext
Public Sub New (generatorContext As ChunkGeneratorContext, errorSink As ErrorSink)

Parameters

generatorContext
ChunkGeneratorContext

A ChunkGeneratorContext to copy information from.

errorSink
ErrorSink

The ErrorSink used to collect RazorErrors encountered when parsing the current Razor document.

Applies to