API Reference

Class

HtmlDiagnosticReport

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
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

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

Accepted by parameters

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, HtmlConversionLossKind 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.Html.HtmlConversionLossKind = 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, HtmlConversionLossKind 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.Html.HtmlConversionLossKind 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 virtual IEnumerator<HtmlDiagnostic> GetEnumerator() #
Returns: IEnumerator<HtmlDiagnostic>

Properties

public IReadOnlyList<HtmlDiagnostic> Diagnostics { get; } #

Diagnostics captured by the report in emission order.

public virtual Int32 Count { get; } #

Number of diagnostics currently captured.

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

Gets a diagnostic by emission index.

Parameters

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

Indicates whether any captured diagnostic has error severity.