Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlDiagnosticReport

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Implements
IReadOnlyList<HtmlDiagnostic> IReadOnlyCollection<HtmlDiagnostic> IEnumerable<HtmlDiagnostic> IEnumerable
Modifiers
sealed
Attributes
DefaultMember("Item")

Mutable report of diagnostics emitted by OfficeIMO HTML workflows.

Inheritance

  • object
  • HtmlDiagnosticReport

Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 3

Constructors

public HtmlDiagnosticReport() #

Creates an empty diagnostic report.

Methods

Add 3 overloads
public void Add(HtmlDiagnostic diagnostic) #

Adds an existing diagnostic instance to the report.

Parameters

diagnostic OfficeIMO.Html.HtmlDiagnostic required
Diagnostic to add.
public void Add(string component, string code, string message, HtmlDiagnosticSeverity severity = Warning, string? source = null, string? detail = null, OfficeConversionLossKind lossKind = None) #

Adds a diagnostic to the report.

Parameters

component string required
Component that emitted the diagnostic.
code string required
Stable diagnostic code.
message string required
Human-readable diagnostic message.
severity OfficeIMO.Html.HtmlDiagnosticSeverity = Warning optional
Diagnostic severity.
source string? = null optional
Optional HTML, resource, or artifact source associated with the diagnostic.
detail string? = null optional
Optional low-level detail.
lossKind OfficeIMO.OfficeConversionLossKind = None optional
Conversion fidelity impact represented by the diagnostic.
public void Add(string component, string code, string message, HtmlDiagnosticSeverity severity, string? source, string? detail, OfficeConversionLossKind lossKind, HtmlSemanticSourceLocation? sourceLocation, string? targetAddress) #

Adds a diagnostic with typed source-to-target provenance.

Parameters

component string required
Component that emitted the diagnostic.
code string required
Stable diagnostic code.
message string required
Human-readable diagnostic message.
severity OfficeIMO.Html.HtmlDiagnosticSeverity required
Diagnostic severity.
source string? required
Optional source.
detail string? required
Optional low-level detail.
lossKind OfficeIMO.OfficeConversionLossKind required
Conversion fidelity impact.
sourceLocation OfficeIMO.Html.HtmlSemanticSourceLocation? required
Optional typed HTML source location.
targetAddress string? required
Optional target artifact address.
public void AddRange(IEnumerable<HtmlDiagnostic> diagnostics) #

Adds diagnostics to the report in enumeration order.

Parameters

diagnostics System.Collections.Generic.IEnumerable<OfficeIMO.Html.HtmlDiagnostic> required
Diagnostics to add.
public void Clear() #

Removes all diagnostics from the report.

public HtmlDiagnosticReport Clone() #

Creates an independent copy of the current diagnostic report.

Returns

HtmlDiagnosticReport A report containing the same immutable diagnostics.
public IEnumerator<HtmlDiagnostic> GetEnumerator() #

Returns an enumerator that iterates through the collection.

Returns

IEnumerator<HtmlDiagnostic> An enumerator that can be used to iterate through the collection.
public HtmlDiagnosticReport Snapshot() #

Creates an independent, read-only snapshot of the current diagnostics.

Properties

public IReadOnlyList<HtmlDiagnostic> Diagnostics { get; } #

Diagnostics captured by the report in emission order.

public bool IsReadOnly { get; } #

True when this report is a frozen result snapshot and can no longer be modified.

public int Count { get; } #

Number of diagnostics currently captured.

public HtmlDiagnostic this[int index] { get; } #

Gets a diagnostic by emission index.

Parameters

index int required
public bool HasErrors { get; } #

Indicates whether any captured diagnostic has error severity.