TagHelperChunkGenerator Class¶
A Microsoft.AspNetCore.Razor.Chunks.Generators.ParentChunkGenerator that is responsible for generating valid Microsoft.AspNetCore.Razor.Chunks.TagHelperChunks.
- Namespace
Microsoft.AspNetCore.Razor.Chunks.Generators- Assemblies
- Microsoft.AspNetCore.Razor
Syntax¶
public class TagHelperChunkGenerator : ParentChunkGenerator, IParentChunkGenerator
-
class
Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperChunkGenerator
Constructors¶
-
TagHelperChunkGenerator(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>)¶ Instantiates a new
Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperChunkGenerator.Arguments: tagHelperDescriptors (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>) – Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptors associated with the current HTML tag.public TagHelperChunkGenerator(IEnumerable<TagHelperDescriptor> tagHelperDescriptors)
-
Methods¶
-
GenerateEndParentChunk(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block, Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext)¶ Ends the generation of a
Microsoft.AspNetCore.Razor.Chunks.TagHelperChunkcapturing all previously visited children since theMicrosoft.AspNetCore.Razor.Chunks.Generators.TagHelperChunkGenerator.GenerateStartParentChunk(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block,Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext)method was called.Arguments: - target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block) – The
Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Blockresponsible for thisMicrosoft.AspNetCore.Razor.Chunks.Generators.TagHelperChunkGenerator. - context (Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext) – A
Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContextinstance that contains information about the current chunk generation process.
public override void GenerateEndParentChunk(Block target, ChunkGeneratorContext context)
- target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block) – The
-
GenerateStartParentChunk(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block, Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext)¶ Starts the generation of a
Microsoft.AspNetCore.Razor.Chunks.TagHelperChunk.Arguments: - target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block) – The
Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Blockresponsible for thisMicrosoft.AspNetCore.Razor.Chunks.Generators.TagHelperChunkGenerator. - context (Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext) – A
Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContextinstance that contains information about the current chunk generation process.
public override void GenerateStartParentChunk(Block target, ChunkGeneratorContext context)
- target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block) – The
-