語言

CodeGeneratorContext 類別

定義

內容物件,其中包含用來產生 Razor 頁面的資訊。

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
繼承
CodeGeneratorContext

建構函式

名稱 Description
CodeGeneratorContext(ChunkGeneratorContext, ErrorSink)

具現化 物件的新實例 CodeGeneratorContext 。

屬性

名稱 Description
Checksum

取得或設定 SHA1 檔案的型總和檢查碼,其位置由 SourceFile 定義。

ChunkTreeBuilder

內容物件,其中包含用來產生 Razor 頁面的資訊。

(繼承來源 ChunkGeneratorContext)
ClassName

內容物件,其中包含用來產生 Razor 頁面的資訊。

(繼承來源 ChunkGeneratorContext)
ErrorSink

用來匯總 RazorError s。

ExpressionRenderingMode

目前的 C# 轉譯模式。

Host

內容物件,其中包含用來產生 Razor 頁面的資訊。

(繼承來源 ChunkGeneratorContext)
RootNamespace

內容物件,其中包含用來產生 Razor 頁面的資訊。

(繼承來源 ChunkGeneratorContext)
SourceFile

內容物件,其中包含用來產生 Razor 頁面的資訊。

(繼承來源 ChunkGeneratorContext)
TargetWriterName

要寫入資訊的 C# 寫入 Chunk 器。

適用於