次の方法で共有


IDiagnosticManagerService.AppendDiagnosticsAsync Method

Definition

Append the diagnostics in diagnostics to the previously reported diagnostics for generatorId.

public:
 System::Threading::Tasks::Task ^ AppendDiagnosticsAsync(System::String ^ generatorId, System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::DiagnosticManagement::DiagnosticCollection ^> ^ diagnostics, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task AppendDiagnosticsAsync (string generatorId, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> diagnostics, System.Threading.CancellationToken cancellationToken);
abstract member AppendDiagnosticsAsync : string * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AppendDiagnosticsAsync (generatorId As String, diagnostics As IReadOnlyList(Of DiagnosticCollection), cancellationToken As CancellationToken) As Task

Parameters

generatorId
String

A unique ID associated with generator of a set of diagnostics.

diagnostics
IReadOnlyList<DiagnosticCollection>

New diagnostics.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Remarks

Each instance of an IDiagnosticManagerService is responsible for creating is own generator IDs and there is no need for the generator IDs distinct from the generator IDs used by a different IDiagnosticManagerService.

Applies to