AnalysisContext.RegisterCompilationAction 方法

定义

注册要执行的完整编译的操作。 编译操作报告Diagnostic有关 .Compilation

public:
 abstract void RegisterCompilationAction(Action<Microsoft::CodeAnalysis::Diagnostics::CompilationAnalysisContext> ^ action);
public abstract void RegisterCompilationAction (Action<Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext> action);
abstract member RegisterCompilationAction : Action<Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext> -> unit
Public MustOverride Sub RegisterCompilationAction (action As Action(Of CompilationAnalysisContext))

参数

action
Action<CompilationAnalysisContext>

在编译结束时要执行的操作。

适用于