共用方式為


AdditionalFileAnalysisContext.ReportDiagnostic(Diagnostic) Method

Definition

Report a diagnostic for the given AdditionalFile. A diagnostic in a non-source document should be created with a non-source Location, which can be created using Create(String, TextSpan, LinePositionSpan) API.

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

Parameters

diagnostic
Diagnostic

Applies to