共用方式為


OperationAnalysisContext.ReportDiagnostic(Diagnostic) 方法

定義

Diagnostic報告 關於 的 SyntaxNode

public:
 void ReportDiagnostic(Microsoft::CodeAnalysis::Diagnostic ^ diagnostic);
public void ReportDiagnostic (Microsoft.CodeAnalysis.Diagnostic diagnostic);
member this.ReportDiagnostic : Microsoft.CodeAnalysis.Diagnostic -> unit
Public Sub ReportDiagnostic (diagnostic As Diagnostic)

參數

diagnostic
Diagnostic

Diagnostic 要回報。

適用於