共用方式為


CSharpCodeVisitor 類別

定義

public ref class CSharpCodeVisitor : Microsoft::AspNetCore::Razor::CodeGenerators::Visitors::CodeVisitor<Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^>
public class CSharpCodeVisitor : Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CodeVisitor<Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter>
type CSharpCodeVisitor = class
    inherit CodeVisitor<CSharpCodeWriter>
Public Class CSharpCodeVisitor
Inherits CodeVisitor(Of CSharpCodeWriter)
繼承

建構函式

CSharpCodeVisitor(CSharpCodeWriter, CodeGeneratorContext)

屬性

Context (繼承來源 ChunkVisitor<TWriter>)
TagHelperRenderer
WriteAttributeValueMethodName

取得用來在轉譯頁面中產生 WriteAttribute 調用的方法名稱。

WriteMethodName

用來將 寫入 Object 目前輸出的方法。

Writer (繼承來源 ChunkVisitor<TWriter>)
WriteToMethodName

用來將 寫入 Object 指定 TextWriter 之 的方法。

方法

Accept(Chunk) (繼承來源 ChunkVisitor<TWriter>)
Accept(IList<Chunk>) (繼承來源 ChunkVisitor<TWriter>)
CreateCodeMapping(String, String, Chunk)
CreateExpressionCodeMapping(String, Chunk)
CreateRawCodeMapping(String, SourceLocation)
CreateStatementCodeMapping(String, Chunk)
RenderDesignTimeExpressionBlockChunk(ExpressionBlockChunk)
RenderRuntimeExpressionBlockChunk(ExpressionBlockChunk)
Visit(AddTagHelperChunk) (繼承來源 CodeVisitor<TWriter>)
Visit(CodeAttributeChunk)
Visit(DynamicCodeAttributeChunk)
Visit(ExpressionBlockChunk)
Visit(ExpressionChunk)
Visit(LiteralChunk)
Visit(LiteralCodeAttributeChunk)
Visit(ParentChunk)
Visit(ParentLiteralChunk)
Visit(RemoveTagHelperChunk) (繼承來源 CodeVisitor<TWriter>)
Visit(SectionChunk)
Visit(SetBaseTypeChunk) (繼承來源 CodeVisitor<TWriter>)
Visit(StatementChunk)
Visit(TagHelperChunk)
Visit(TagHelperPrefixDirectiveChunk) (繼承來源 CodeVisitor<TWriter>)
Visit(TemplateChunk)
Visit(TypeMemberChunk) (繼承來源 CodeVisitor<TWriter>)
Visit(UsingChunk) (繼承來源 CodeVisitor<TWriter>)

適用於