Share via


IDiagnosticManagerService.AddBuildOnlyDiagnosticCodesAsync Method

Definition

Indicates the diagnosticCodes will always be a BuildError.

public System.Threading.Tasks.Task AddBuildOnlyDiagnosticCodesAsync (System.Collections.Generic.IReadOnlyList<string> diagnosticCodes, System.Threading.CancellationToken cancellationToken);
abstract member AddBuildOnlyDiagnosticCodesAsync : System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AddBuildOnlyDiagnosticCodesAsync (diagnosticCodes As IReadOnlyList(Of String), cancellationToken As CancellationToken) As Task

Parameters

diagnosticCodes
IReadOnlyList<String>

Codes that are only produced from a build.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Remarks

Added in DiagnosticManagerService.

Applies to