CodeGeneratorContext(ChunkGeneratorContext, ErrorSink) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.