HtmlDiagnostic
OfficeIMO.Html
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.
Returned or exposed by 15
- Property HtmlCapabilityGalleryArtifactEvidence.NativeDiagnostics
- Property HtmlConversionDocument.Diagnostics
- Property HtmlConversionException.Diagnostics
- Property HtmlConversionPreflight.Diagnostics
- Property HtmlConversionReport.NativeDiagnostics
- Method HtmlDiagnostic.WithProvenance
- Method HtmlDiagnosticReport.GetEnumerator
- Property HtmlDiagnosticReport.Diagnostics
- Property HtmlDiagnosticReport.Item
- Property HtmlEditableLayoutProjection.Diagnostics
- Property HtmlRenderArchiveManifest.Diagnostics
- Property HtmlRenderDocument.NativeDiagnostics
- Property HtmlRenderResult.Diagnostics
- Property HtmlRenderResult.LossDiagnostics
- Property HtmlResourceManifest.Diagnostics
Accepted by parameters 7
- Constructor HtmlCapabilityGalleryArtifactEvidence.HtmlCapabilityGalleryArtifactEvidence
- Constructor HtmlCapabilityGalleryResult.HtmlCapabilityGalleryResult
- Constructor HtmlConversionException.HtmlConversionException
- Method HtmlDiagnosticReport.Add
- Method HtmlDiagnosticReport.AddRange
- Method HtmlRenderResult.WithAdditionalDiagnostics
- Constructor HtmlTextConversionResult.HtmlTextConversionResult
Constructors
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
- Component that emitted the diagnostic, such as OfficeIMO.Word.Html.
- code string
- Stable diagnostic code.
- message string
- Human-readable diagnostic message.
- severity OfficeIMO.Html.HtmlDiagnosticSeverity = Warning
- Diagnostic severity.
- source string? = null
- Optional HTML, resource, or artifact source associated with the diagnostic.
- detail string? = null
- Optional low-level detail, such as an exception type, status text, or limit data.
- lossKind OfficeIMO.OfficeConversionLossKind = None
- 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
- Component that emitted the diagnostic.
- code string
- Stable diagnostic code.
- message string
- Human-readable diagnostic message.
- severity OfficeIMO.Html.HtmlDiagnosticSeverity
- Diagnostic severity.
- source string?
- Optional HTML, resource, or artifact source.
- detail string?
- Optional low-level detail.
- lossKind OfficeIMO.OfficeConversionLossKind
- Conversion fidelity impact.
- sourceLocation OfficeIMO.Html.HtmlSemanticSourceLocation?
- Optional typed HTML source location.
- targetAddress string?
- 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?
- targetAddress string
Returns
HtmlDiagnosticInherited Methods
Properties
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.