CompilationWithAnalyzersOptions.OnAnalyzerException 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
分析器引发异常时要调用的可选委托。
public:
property Action<Exception ^, Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^, Microsoft::CodeAnalysis::Diagnostic ^> ^ OnAnalyzerException { Action<Exception ^, Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^, Microsoft::CodeAnalysis::Diagnostic ^> ^ get(); };
public Action<Exception,Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer,Microsoft.CodeAnalysis.Diagnostic> OnAnalyzerException { get; }
public Action<Exception,Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer,Microsoft.CodeAnalysis.Diagnostic>? OnAnalyzerException { get; }
member this.OnAnalyzerException : Action<Exception, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.CodeAnalysis.Diagnostic>
Public ReadOnly Property OnAnalyzerException As Action(Of Exception, DiagnosticAnalyzer, Diagnostic)