共用方式為


CodeGeneratorContext(ChunkGeneratorContext, ErrorSink) 建構函式

定義

具現化 物件的新實例 CodeGeneratorContext

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)

參數

generatorContext
ChunkGeneratorContext

ChunkGeneratorContext 從中複製資訊的 。

errorSink
ErrorSink

ErrorSink 析目前 Razor 檔時,用來收集 RazorError 的 。

適用於