Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlDiagnosticReport

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision a039964de4cc 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) #
Returns: Void

Adds an existing diagnostic instance to the report.

Parameters

diagnostic OfficeIMO.Html.HtmlDiagnostic requiredposition: 0
Diagnostic to add.
public Void Add(String component, String code, String message, HtmlDiagnosticSeverity severity = Warning, String? source = null, String? detail = null, OfficeConversionLossKind lossKind = None) #
Returns: Void

Adds a diagnostic to the report.

Parameters

component System.String requiredposition: 0
Component that emitted the diagnostic.
code System.String requiredposition: 1
Stable diagnostic code.
message System.String requiredposition: 2
Human-readable diagnostic message.
severity OfficeIMO.Html.HtmlDiagnosticSeverity = Warning optionalposition: 3
Diagnostic severity.
source System.String? = null optionalposition: 4
Optional HTML, resource, or artifact source associated with the diagnostic.
detail System.String? = null optionalposition: 5
Optional low-level detail.
lossKind OfficeIMO.OfficeConversionLossKind = None optionalposition: 6
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) #
Returns: Void

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

Parameters

component System.String requiredposition: 0
Component that emitted the diagnostic.
code System.String requiredposition: 1
Stable diagnostic code.
message System.String requiredposition: 2
Human-readable diagnostic message.
severity OfficeIMO.Html.HtmlDiagnosticSeverity requiredposition: 3
Diagnostic severity.
source System.String? requiredposition: 4
Optional source.
detail System.String? requiredposition: 5
Optional low-level detail.
lossKind OfficeIMO.OfficeConversionLossKind requiredposition: 6
Conversion fidelity impact.
sourceLocation OfficeIMO.Html.HtmlSemanticSourceLocation? requiredposition: 7
Optional typed HTML source location.
targetAddress System.String? requiredposition: 8
Optional target artifact address.
public Void AddRange(IEnumerable<HtmlDiagnostic> diagnostics) #
Returns: Void

Adds diagnostics to the report in enumeration order.

Parameters

diagnostics System.Collections.Generic.IEnumerable<OfficeIMO.Html.HtmlDiagnostic> requiredposition: 0
Diagnostics to add.
public Void Clear() #
Returns: Void

Removes all diagnostics from the report.

public HtmlDiagnosticReport Clone() #
Returns: HtmlDiagnosticReport

Creates an independent copy of the current diagnostic report.

Returns

A report containing the same immutable diagnostics.

public IEnumerator<HtmlDiagnostic> GetEnumerator() #
Returns: IEnumerator<HtmlDiagnostic>

Returns an enumerator that iterates through the collection.

Returns

An enumerator that can be used to iterate through the collection.

public HtmlDiagnosticReport Snapshot() #
Returns: HtmlDiagnosticReport

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 Boolean IsReadOnly { get; } #

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

public Int32 Count { get; } #

Number of diagnostics currently captured.

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

Gets a diagnostic by emission index.

Parameters

index System.Int32 requiredposition: 0
public Boolean HasErrors { get; } #

Indicates whether any captured diagnostic has error severity.