Freigeben über


DiagnosticsReporter.ReportDiagnosticAsync Method

Definition

Reports a single diagnostic with diagnostic by adding them to the previously reported list.

public System.Threading.Tasks.Task ReportDiagnosticAsync (Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic diagnostic, System.Threading.CancellationToken cancellationToken);
member this.ReportDiagnosticAsync : Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReportDiagnosticAsync (diagnostic As DocumentDiagnostic, cancellationToken As CancellationToken) As Task

Parameters

diagnostic
DocumentDiagnostic

New diagnostic to report.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Applies to