CSharpTagHelperAttributeValueVisitor Class

Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CodeVisitor`1 that writes code for a non-<xref uid=”langword_csharp_string” name=”string” href=”“></xref> tag helper bound attribute value.

Namespace
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors
Assemblies
  • Microsoft.AspNetCore.Razor

Inheritance Hierarchy

Syntax

public class CSharpTagHelperAttributeValueVisitor : CodeVisitor<CSharpCodeWriter>, IChunkVisitor
class Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpTagHelperAttributeValueVisitor

Constructors

CSharpTagHelperAttributeValueVisitor(Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter, Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext, System.String)

Initializes a new instance of the Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpTagHelperAttributeValueVisitor class.

Arguments:
public CSharpTagHelperAttributeValueVisitor(CSharpCodeWriter writer, CodeGeneratorContext context, string attributeTypeName)

Methods

Visit(Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk) – The Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk to render.
protected override void Visit(ExpressionBlockChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk) – The Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk to render.
protected override void Visit(ExpressionChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.LiteralChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.LiteralChunk) – The Microsoft.AspNetCore.Razor.Chunks.LiteralChunk to render.
protected override void Visit(LiteralChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.ParentChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.ParentChunk) – The Microsoft.AspNetCore.Razor.Chunks.ParentChunk to render.
protected override void Visit(ParentChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.ParentLiteralChunk)
protected override void Visit(ParentLiteralChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.SectionChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.SectionChunk) – The Microsoft.AspNetCore.Razor.Chunks.SectionChunk to render.
protected override void Visit(SectionChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.StatementChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.StatementChunk) – The Microsoft.AspNetCore.Razor.Chunks.StatementChunk to render.
protected override void Visit(StatementChunk chunk)
Visit(Microsoft.AspNetCore.Razor.Chunks.TemplateChunk)

Writes code for the given <em>chunk</em>.

Arguments:chunk (Microsoft.AspNetCore.Razor.Chunks.TemplateChunk) – The Microsoft.AspNetCore.Razor.Chunks.TemplateChunk to render.
protected override void Visit(TemplateChunk chunk)