# RtfConversionDiagnostic

Describes how one RTF feature was handled by a conversion boundary.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfConversionDiagnostic.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L6)

**Modifiers**

sealed

Describes how one RTF feature was handled by a conversion boundary.

## Inheritance

- object
- RtfConversionDiagnostic

## Usage

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

- Method [RtfConversionReport.Add](/api/rtf/officeimo-rtf-rtfconversionreport/#method-add-officeimo-rtf-rtfconversionseverity-string-string-officeimo-rtf-rtfconversionaction-string-string-int32-string)
- Property [RtfConversionReport.NativeDiagnostics](/api/rtf/officeimo-rtf-rtfconversionreport/#property-nativediagnostics)

### Accepted by parameters 1

- Method [RtfConversionReport.Add](/api/rtf/officeimo-rtf-rtfconversionreport/#method-add-officeimo-rtf-rtfconversiondiagnostic) parameter `diagnostic`

Filter members 

Show inherited

## Constructors

`public RtfConversionDiagnostic(RtfConversionSeverity severity, string code, string message, RtfConversionAction action, string? sourcePath = null, string? feature = null, int count = 1, string? detail = null)` [#](#constructor-ctor-officeimo-rtf-rtfconversionseverity-string-string-officeimo-rtf-rtfconversionaction-string-string-int32-string)

[RtfConversionDiagnostic.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L6)

Initializes a conversion diagnostic.

Parameters

**severity OfficeIMO.Rtf.RtfConversionSeverity required**

**code string required**

**message string required**

**action OfficeIMO.Rtf.RtfConversionAction required**

**sourcePath string? = null optional**

**feature string? = null optional**

**count int = 1 optional**

**detail string? = null optional**

## 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 RtfConversionSeverity Severity { get; }` [#](#property-severity)

[RtfConversionDiagnostic.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L27)

Diagnostic severity.

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

[RtfConversionDiagnostic.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L30)

Stable machine-readable code.

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

[RtfConversionDiagnostic.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L33)

Human-readable description.

`public RtfConversionAction Action { get; }` [#](#property-action)

[RtfConversionDiagnostic.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L36)

Action taken for the source feature.

`public string? SourcePath { get; }` [#](#property-sourcepath)

[RtfConversionDiagnostic.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L39)

Optional logical path within the source document.

`public string? Feature { get; }` [#](#property-feature)

[RtfConversionDiagnostic.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L42)

Optional feature, element, destination, or control-word name.

`public int Count { get; }` [#](#property-count)

[RtfConversionDiagnostic.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L45)

Number of equivalent occurrences represented by this entry.

`public string? Detail { get; }` [#](#property-detail)

[RtfConversionDiagnostic.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionDiagnostic.cs#L48)

Optional adapter-specific details.

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