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¶
System.Object
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.ChunkVisitor{Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter}
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CodeVisitor{Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter}
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpTagHelperAttributeValueVisitor
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: - writer (Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter) – The
Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter
used to write code. - context (Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext) – A
Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext
instance that contains information about the current code generation process. - attributeTypeName (System.String) – Full name of the property
System.Type
for which thisMicrosoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpTagHelperAttributeValueVisitor
is writing the value.
public CSharpTagHelperAttributeValueVisitor(CSharpCodeWriter writer, CodeGeneratorContext context, string attributeTypeName)
- writer (Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter) – The
-
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)
-