IDiagnosticManagerService.AddBuildOnlyDiagnosticCodesAsync 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.
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.