CompilationWithAnalyzersOptions.OnAnalyzerException 属性

定义

分析器引发异常时要调用的可选委托。

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)

属性值

适用于