CodeGeneratorContext Class

Definition

Context object with information used to generate a Razor page.

public ref class CodeGeneratorContext : Microsoft::AspNetCore::Razor::Chunks::Generators::ChunkGeneratorContext
public class CodeGeneratorContext : Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext
type CodeGeneratorContext = class
    inherit ChunkGeneratorContext
Public Class CodeGeneratorContext
Inherits ChunkGeneratorContext
Inheritance
CodeGeneratorContext

Constructors

CodeGeneratorContext(ChunkGeneratorContext, ErrorSink)

Instantiates a new instance of the CodeGeneratorContext object.

Properties

Checksum

Gets or sets the SHA1 based checksum for the file whose location is defined by SourceFile.

ChunkTreeBuilder (Inherited from ChunkGeneratorContext)
ClassName (Inherited from ChunkGeneratorContext)
ErrorSink

Used to aggregate RazorErrors.

ExpressionRenderingMode

The current C# rendering mode.

Host (Inherited from ChunkGeneratorContext)
RootNamespace (Inherited from ChunkGeneratorContext)
SourceFile (Inherited from ChunkGeneratorContext)
TargetWriterName

The C# writer to write Chunk information to.

Applies to