# OpmlDiagnostic

A stable OPML validation or conversion diagnostic.

Class 

`OfficeIMO.Opml`

**Namespace**

`OfficeIMO.Opml`

**Assembly**

`OfficeIMO.Opml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OpmlContracts.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L98)

**Modifiers**

sealed

A stable OPML validation or conversion diagnostic.

## Inheritance

- object
- OpmlDiagnostic

## Usage

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

- Property [OpmlConversionResult<T>.NativeDiagnostics](/api/opml/officeimo-opml-opmlconversionresult/#property-nativediagnostics)
- Property [OpmlValidationResult.Diagnostics](/api/opml/officeimo-opml-opmlvalidationresult/#property-diagnostics)

Filter members 

Show inherited

## Constructors

OpmlDiagnostic 2 overloads

`public OpmlDiagnostic(string code, OpmlDiagnosticSeverity severity, string message, string? path = null)` [#](#constructor-ctor-string-officeimo-opml-opmldiagnosticseverity-string-string)

[OpmlContracts.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L98)

Creates a diagnostic.

Parameters

**code string required**

**severity OfficeIMO.Opml.OpmlDiagnosticSeverity required**

**message string required**

**path string? = null optional**

`public OpmlDiagnostic(string code, OpmlDiagnosticSeverity severity, string message, string? path, OfficeConversionLossKind lossKind)` [#](#constructor-ctor-string-officeimo-opml-opmldiagnosticseverity-string-string-officeimo-officeconversionlosskind)

[OpmlContracts.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L113)

Creates a diagnostic with an explicit fidelity-loss category.

Parameters

**code string required**

**severity OfficeIMO.Opml.OpmlDiagnosticSeverity required**

**message string required**

**path string? required**

**lossKind OfficeIMO.OfficeConversionLossKind required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Code { get; }` [#](#property-code)

[OpmlContracts.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L87)

Machine-readable code.

`public OpmlDiagnosticSeverity Severity { get; }` [#](#property-severity)

[OpmlContracts.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L89)

Severity.

`public string Message { get; }` [#](#property-message)

[OpmlContracts.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L91)

Human-readable message.

`public string? Path { get; }` [#](#property-path)

[OpmlContracts.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L93)

Best-effort element path.

`public OfficeConversionLossKind LossKind { get; }` [#](#property-losskind)

[OpmlContracts.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Opml/OpmlContracts.cs#L95)

Exact fidelity-loss category represented by this diagnostic.

<!-- PowerForge markdown artifact sha256:7DC6218A626604ECF48A0D9C7CCDCE5740A47CBB8D763BAADF69B2374351B5C4 -->
