IDiagnosticManagerService.SetDiagnosticsAsync 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.
Replace the previously reported diagnostics for generatorId
with diagnostics
.
public:
System::Threading::Tasks::Task ^ SetDiagnosticsAsync(System::String ^ generatorId, System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::DiagnosticManagement::DiagnosticCollection ^> ^ diagnostics, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetDiagnosticsAsync (string generatorId, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> diagnostics, System.Threading.CancellationToken cancellationToken);
abstract member SetDiagnosticsAsync : string * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetDiagnosticsAsync (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.