DiagnosticsReporter.ReportDiagnosticAsync 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 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.