次の方法で共有


IDiagnosticManagerService.ClearDiagnosticsAsync Method

Definition

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

generatorIdThe ID of the diagnostics that should be removed.

Applies to