IDiagnosticManagerService.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.
Clear all diagnostics associated with the specified generatorId
.
public:
System::Threading::Tasks::Task ^ ClearDiagnosticsAsync(System::String ^ generatorId, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task ClearDiagnosticsAsync (string generatorId, System.Threading.CancellationToken cancellationToken);
abstract member ClearDiagnosticsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ClearDiagnosticsAsync (generatorId As String, cancellationToken As CancellationToken) As Task
Parameters
- generatorId
- String
Generator ID of the diagnostics that are to be cleared.
- cancellationToken
- CancellationToken
A cancellation token to cancel the in-progress invocation.
Returns
A Task representing the asynchronous operation.
Remarks
generatorId
The ID of the diagnostics that should be removed.