共用方式為


IDiagnosticManagerService 介面

定義

報告診斷的服務。

public interface class IDiagnosticManagerService : IDisposable
public interface IDiagnosticManagerService : IDisposable
type IDiagnosticManagerService = interface
    interface IDisposable
Public Interface IDiagnosticManagerService
Implements IDisposable
實作

方法

AddBuildOnlyDiagnosticCodesAsync(IReadOnlyList<String>, CancellationToken)

表示 一 diagnosticCodes 律為 BuildError

AppendDiagnosticsAsync(String, IReadOnlyList<DiagnosticCollection>, CancellationToken)

將中的 diagnostics 診斷附加至 先前回報的 generatorId診斷。

ClearAllDiagnosticsAsync(CancellationToken)

拿掉 所 IDiagnosticManagerService建立的所有診斷。

ClearDiagnosticsAsync(String, CancellationToken)

清除與指定 generatorId相關聯的所有診斷。

SetDiagnosticsAsync(String, IReadOnlyList<DiagnosticCollection>, CancellationToken)

將先前回報的診斷取代為 generatorIddiagnostics

適用於