Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlDiagnostic

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 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 string required
Component that emitted the diagnostic, such as OfficeIMO.Word.Html.
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, such as an exception type, status text, or limit data.
lossKind OfficeIMO.OfficeConversionLossKind = None optional
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 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 HTML, resource, or artifact 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.

Methods

public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.
public HtmlDiagnostic WithProvenance(HtmlSemanticSourceLocation? sourceLocation, string targetAddress) #

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

Parameters

sourceLocation OfficeIMO.Html.HtmlSemanticSourceLocation? required
targetAddress string required

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.