# AdfConversionDiagnostic

A conversion decision recorded for fidelity review.

Class 

`OfficeIMO.Adf`

**Namespace**

`OfficeIMO.Adf`

**Assembly**

`OfficeIMO.Adf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[AdfConversionModels.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L20)

**Modifiers**

sealed

A conversion decision recorded for fidelity review.

## Inheritance

- object
- AdfConversionDiagnostic

## 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 1

- Property [AdfConversionReport.NativeDiagnostics](/api/adf/officeimo-adf-adfconversionreport/#property-nativediagnostics)

### Accepted by parameters 1

- Constructor [AdfConversionReport.AdfConversionReport](/api/adf/officeimo-adf-adfconversionreport/#constructor-ctor-collections-generic-ienumerable-officeimo-adf-adfconversiondiagnostic) parameter `diagnostics`

Filter members 

Show inherited

## Constructors

AdfConversionDiagnostic 2 overloads

`public AdfConversionDiagnostic(string code, string path, string message, AdfConversionSeverity severity)` [#](#constructor-ctor-string-string-string-officeimo-adf-adfconversionseverity)

[AdfConversionModels.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L20)

Creates a diagnostic to include in a conversion report.

Parameters

**code string required**

Non-empty identifier for the conversion decision.

**path string required**

Location associated with the decision; use $ for the document root.

**message string required**

Non-empty explanation for a reader of the report.

**severity OfficeIMO.Adf.AdfConversionSeverity required**

Severity used by the report's fidelity and error checks.

`public AdfConversionDiagnostic(string code, string path, string message, AdfConversionSeverity severity, OfficeConversionLossKind lossKind)` [#](#constructor-ctor-string-string-string-officeimo-adf-adfconversionseverity-officeimo-officeconversionlosskind)

[AdfConversionModels.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L43)

Creates a diagnostic with an explicit fidelity-loss category.

Parameters

**code string required**

Non-empty identifier for the conversion decision.

**path string required**

Location associated with the decision; use $ for the document root.

**message string required**

Non-empty explanation for a reader of the report.

**severity OfficeIMO.Adf.AdfConversionSeverity required**

Severity used by the report's fidelity and error checks.

**lossKind OfficeIMO.OfficeConversionLossKind required**

Exact fidelity-loss category.

## 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)

[AdfConversionModels.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L49)

Gets the diagnostic identifier supplied by the converter or caller.

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

[AdfConversionModels.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L52)

Gets the location associated with the decision, typically a JSON-style ADF path.

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

[AdfConversionModels.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L55)

Gets the human-readable explanation of the conversion decision.

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

[AdfConversionModels.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L58)

Gets the severity used when evaluating fidelity and errors in a report.

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

[AdfConversionModels.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Adf/AdfConversionModels.cs#L61)

Gets the exact fidelity-loss category represented by this diagnostic.

<!-- PowerForge markdown artifact sha256:F40691A3C9E3E817BDAD3247404B5C57E08F26BCD1066DF6890C437C3A3FB86E -->
