RazorEngineHost.DecorateChunkGenerator(RazorChunkGenerator) 方法

定义

获取区块生成器的实例,并为其提供修饰或替换它的机会

public:
 virtual Microsoft::AspNetCore::Razor::Chunks::Generators::RazorChunkGenerator ^ DecorateChunkGenerator(Microsoft::AspNetCore::Razor::Chunks::Generators::RazorChunkGenerator ^ incomingChunkGenerator);
public virtual Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator DecorateChunkGenerator (Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator incomingChunkGenerator);
abstract member DecorateChunkGenerator : Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator -> Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator
override this.DecorateChunkGenerator : Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator -> Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator
Public Overridable Function DecorateChunkGenerator (incomingChunkGenerator As RazorChunkGenerator) As RazorChunkGenerator

参数

incomingChunkGenerator
RazorChunkGenerator

区块生成器

返回

修改后的同一区块生成器或不同的区块生成器

适用于