CSharpTagHelperAttributeValueVisitor.Visit Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Visit(ExpressionBlockChunk) |
Writes code for the given |
| Visit(ExpressionChunk) |
Writes code for the given |
| Visit(LiteralChunk) |
Writes code for the given |
| Visit(ParentChunk) |
Writes code for the given |
| Visit(ParentLiteralChunk) | |
| Visit(SectionChunk) |
Writes code for the given |
| Visit(StatementChunk) |
Writes code for the given |
| Visit(TemplateChunk) |
Writes code for the given |
Visit(ExpressionBlockChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::ExpressionBlockChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk -> unit
Protected Overrides Sub Visit (chunk As ExpressionBlockChunk)
Parameters
- chunk
- ExpressionBlockChunk
The ExpressionBlockChunk to render.
Applies to
Visit(ExpressionChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::ExpressionChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk -> unit
Protected Overrides Sub Visit (chunk As ExpressionChunk)
Parameters
- chunk
- ExpressionChunk
The ExpressionChunk to render.
Applies to
Visit(LiteralChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::LiteralChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.LiteralChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.LiteralChunk -> unit
Protected Overrides Sub Visit (chunk As LiteralChunk)
Parameters
- chunk
- LiteralChunk
The LiteralChunk to render.
Applies to
Visit(ParentChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::ParentChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.ParentChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.ParentChunk -> unit
Protected Overrides Sub Visit (chunk As ParentChunk)
Parameters
- chunk
- ParentChunk
The ParentChunk to render.
Remarks
Tracks code mappings for all children while writing.
Applies to
Visit(ParentLiteralChunk)
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::ParentLiteralChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.ParentLiteralChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.ParentLiteralChunk -> unit
Protected Overrides Sub Visit (chunk As ParentLiteralChunk)
Parameters
- chunk
- ParentLiteralChunk
Applies to
Visit(SectionChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::SectionChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.SectionChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.SectionChunk -> unit
Protected Overrides Sub Visit (chunk As SectionChunk)
Parameters
- chunk
- SectionChunk
The SectionChunk to render.
Remarks
Unconditionally adds a RazorError to inform user of unexpected @section directive.
Applies to
Visit(StatementChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::StatementChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.StatementChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.StatementChunk -> unit
Protected Overrides Sub Visit (chunk As StatementChunk)
Parameters
- chunk
- StatementChunk
The StatementChunk to render.
Remarks
Unconditionally adds a RazorError to inform user of unexpected code block.
Applies to
Visit(TemplateChunk)
Writes code for the given chunk.
protected:
override void Visit(Microsoft::AspNetCore::Razor::Chunks::TemplateChunk ^ chunk);
protected override void Visit (Microsoft.AspNetCore.Razor.Chunks.TemplateChunk chunk);
override this.Visit : Microsoft.AspNetCore.Razor.Chunks.TemplateChunk -> unit
Protected Overrides Sub Visit (chunk As TemplateChunk)
Parameters
- chunk
- TemplateChunk
The TemplateChunk to render.
Remarks
Unconditionally adds a RazorError to inform user of unexpected template e.g. @<p>paragraph@</p>.