API Reference

Class

HtmlDiagnostic

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Shared diagnostic record for OfficeIMO HTML ingestion, conversion, and artifact workflows.

Inheritance

  • Object
  • HtmlDiagnostic

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

HtmlDiagnostic 2 overloads
public HtmlDiagnostic(String component, String code, String message, HtmlDiagnosticSeverity severity = Warning, String source = null, String detail = null, HtmlConversionLossKind lossKind = None) #

Creates a shared HTML diagnostic.

Parameters

component System.String requiredposition: 0
Component that emitted the diagnostic, such as OfficeIMO.Word.Html.
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, such as an exception type, status text, or limit data.
lossKind OfficeIMO.Html.HtmlConversionLossKind = None optionalposition: 6
Conversion fidelity impact represented by the diagnostic.
public HtmlDiagnostic(String component, String code, String message, HtmlDiagnosticSeverity severity, String source, String detail, HtmlConversionLossKind lossKind, HtmlSemanticSourceLocation sourceLocation, String targetAddress) #

Creates a shared 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 HTML, resource, or artifact 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.

Methods

public override String ToString() #
Returns: String
public HtmlDiagnostic WithProvenance(HtmlSemanticSourceLocation sourceLocation, String targetAddress) #
Returns: HtmlDiagnostic

Creates an equivalent diagnostic with a more precise source and target address.

Parameters

sourceLocation OfficeIMO.Html.HtmlSemanticSourceLocation requiredposition: 0
targetAddress System.String requiredposition: 1

Properties

public String Component { get; } #

Component that emitted the diagnostic.

public String Code { get; } #

Stable diagnostic code.

public String Message { get; } #

Human-readable diagnostic message.

public HtmlDiagnosticSeverity Severity { get; } #

Diagnostic severity.

public String Source { get; } #

Optional HTML, resource, or artifact source associated with the diagnostic.

public String Detail { get; } #

Optional low-level detail, such as an exception type, status text, or limit data.

public HtmlConversionLossKind LossKind { get; } #

Describes whether this diagnostic represents approximation, omission, or complete conversion failure.

public HtmlDiagnosticProvenance Provenance { get; } #

Stable source-to-target provenance. This is always present, with document/component fallbacks.