AnalysisContext.RegisterCompilationStartAction Method

Definition

Register an action to be executed at compilation start. A compilation start action can register other actions and/or collect state information to be used in diagnostic analysis, but cannot itself report any Diagnostics.

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

Parameters

action
Action<CompilationStartAnalysisContext>

Action to be executed at compilation start.

Applies to