Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlDiagnostic

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision a039964de4cc with working tree changes
Modifiers sealed

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

Inheritance

  • Object
  • HtmlDiagnostic

Usage

Explore 22 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 7

Constructors

HtmlDiagnostic 2 overloads
public HtmlDiagnostic(String component, String code, String message, HtmlDiagnosticSeverity severity = Warning, String? source = null, String? detail = null, OfficeConversionLossKind 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.OfficeConversionLossKind = None optionalposition: 6
Conversion fidelity impact represented by the diagnostic.
public HtmlDiagnostic(String component, String code, String message, HtmlDiagnosticSeverity severity, String? source, String? detail, OfficeConversionLossKind 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.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.

Methods

public override String ToString() #
Returns: String

Returns a string that represents the current object.

Returns

A string that represents the current object.

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 OfficeConversionLossKind 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.