Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDiagnostic

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

An immutable finding with a stable code and optional source location and format.

Inheritance

  • object
  • OfficeDiagnostic

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.

Accepted by parameters 2

Constructors

public OfficeDiagnostic(string code, OfficeDiagnosticSeverity severity, string message, string? location = null, string? format = null, OfficeConversionLossKind lossKind = None) #

Creates a finding. Set lossKind explicitly for approximation, omission or unassessed content; warnings alone do not imply loss.

Parameters

code string required
severity OfficeIMO.OfficeDiagnosticSeverity required
message string required
location string? = null optional
format string? = null optional
lossKind OfficeIMO.OfficeConversionLossKind = None optional

Properties

public string Code { get; } #

Gets a stable catalog code, or an extension code supplied by a caller.

public OfficeDiagnosticSeverity Severity { get; } #

Gets severity independently of fidelity loss.

public string Message { get; } #

Gets a human-readable description.

public string? Location { get; } #

Gets a source part, page, sheet, span or other source location.

public string? Format { get; } #

Gets the format or conversion stage that emitted the finding.

public OfficeConversionLossKind LossKind { get; } #

Gets the fidelity impact, including loss that does not raise warning severity.