Partager via


DiagnosticsReporter.ReportDiagnosticsAsync Method

Definition

Reports diagnostics with diagnostics by adding them to the previously reported list.

public System.Threading.Tasks.Task ReportDiagnosticsAsync (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic> diagnostics, System.Threading.CancellationToken cancellationToken);
member this.ReportDiagnosticsAsync : seq<Microsoft.VisualStudio.Extensibility.Languages.DocumentDiagnostic> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReportDiagnosticsAsync (diagnostics As IEnumerable(Of DocumentDiagnostic), cancellationToken As CancellationToken) As Task

Parameters

diagnostics
IEnumerable<DocumentDiagnostic>

New diagnostics to report.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Applies to