DiagnosticsReporter.ReportDiagnosticsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.