HtmlDiagnosticReport
OfficeIMO.Html
Mutable report of diagnostics emitted by OfficeIMO HTML workflows.
Inheritance
- object
- HtmlDiagnosticReport
Usage
Explore 7 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 4
- Property HtmlCapabilityGalleryResult.Diagnostics
- Method HtmlDiagnosticReport.Clone
- Method HtmlDiagnosticReport.Snapshot
- Property HtmlResourceSession.Diagnostics
Accepted by parameters 3
- Method HtmlActiveMediaFilter.Filter
- Method HtmlResourceSession.Resolve
- Method HtmlResourceSession.ResolveAsync
Constructors
Methods
public void Add(HtmlDiagnostic diagnostic) #Adds an existing diagnostic instance to the report.
Parameters
- diagnostic OfficeIMO.Html.HtmlDiagnostic
- Diagnostic to add.
public void Add(string component, string code, string message, HtmlDiagnosticSeverity severity = Warning, string? source = null, string? detail = null, OfficeConversionLossKind lossKind = None) #Adds a diagnostic to the report.
Parameters
- component string
- Component that emitted the diagnostic.
- 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.
- lossKind OfficeIMO.OfficeConversionLossKind = None
- Conversion fidelity impact represented by the diagnostic.
public void Add(string component, string code, string message, HtmlDiagnosticSeverity severity, string? source, string? detail, OfficeConversionLossKind lossKind, HtmlSemanticSourceLocation? sourceLocation, string? targetAddress) #Adds a 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 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.
public void AddRange(IEnumerable<HtmlDiagnostic> diagnostics) #Adds diagnostics to the report in enumeration order.
Parameters
- diagnostics System.Collections.Generic.IEnumerable<OfficeIMO.Html.HtmlDiagnostic>
- Diagnostics to add.
public HtmlDiagnosticReport Clone() #Creates an independent copy of the current diagnostic report.
public IEnumerator<HtmlDiagnostic> GetEnumerator() #Returns an enumerator that iterates through the collection.
Returns
IEnumerator<HtmlDiagnostic> An enumerator that can be used to iterate through the collection.public HtmlDiagnosticReport Snapshot() #Creates an independent, read-only snapshot of the current diagnostics.
Returns
HtmlDiagnosticReportInherited Methods
Properties
public IReadOnlyList<HtmlDiagnostic> Diagnostics { get; } #Diagnostics captured by the report in emission order.
public bool IsReadOnly { get; } #True when this report is a frozen result snapshot and can no longer be modified.
public HtmlDiagnostic this[int index] { get; } #Gets a diagnostic by emission index.
Parameters
- index int
public bool HasErrors { get; } #Indicates whether any captured diagnostic has error severity.