DiagnosticsReporter.ClearDiagnosticsAsync 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.
Overloads
ClearDiagnosticsAsync(ITextDocumentSnapshot, CancellationToken) |
Clears all previous reported diagnostics by this generator for a given open document. |
ClearDiagnosticsAsync(Uri, CancellationToken) |
Clears all previous reported diagnostics by this generator for a given closed document. |
ClearDiagnosticsAsync(ITextDocumentSnapshot, CancellationToken)
Clears all previous reported diagnostics by this generator for a given open document.
public System.Threading.Tasks.Task ClearDiagnosticsAsync (Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot textDocument, System.Threading.CancellationToken cancellationToken);
member this.ClearDiagnosticsAsync : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ClearDiagnosticsAsync (textDocument As ITextDocumentSnapshot, cancellationToken As CancellationToken) As Task
Parameters
- textDocument
- ITextDocumentSnapshot
Text document to clear diagnostic entries for.
- cancellationToken
- CancellationToken
A cancellation token to cancel the in-progress invocation.
Returns
A Task representing the asynchronous operation.
Applies to
ClearDiagnosticsAsync(Uri, CancellationToken)
Clears all previous reported diagnostics by this generator for a given closed document.
public System.Threading.Tasks.Task ClearDiagnosticsAsync (Uri documentMoniker, System.Threading.CancellationToken cancellationToken);
member this.ClearDiagnosticsAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ClearDiagnosticsAsync (documentMoniker As Uri, cancellationToken As CancellationToken) As Task
Parameters
- documentMoniker
- Uri
Document URI to clear diagnostic entries for.
- cancellationToken
- CancellationToken
A cancellation token to cancel the in-progress invocation.
Returns
A Task representing the asynchronous operation.