# LegacyDocImportDiagnostic

Diagnostic produced while importing a legacy binary Word document.

Class 

`OfficeIMO.Word.LegacyDoc.Diagnostics`

**Namespace**

`OfficeIMO.Word.LegacyDoc.Diagnostics`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`e96266e685be` with working tree changes

**Source**

[LegacyDocImportDiagnostic.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L12)

**Modifiers**

sealed

Diagnostic produced while importing a legacy binary Word document.

## Inheritance

- object
- LegacyDocImportDiagnostic

## Usage

Explore 1 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 [WordDocument.LegacyDocImportDiagnostics](/api/word/officeimo-word-worddocument/#property-legacydocimportdiagnostics)

Filter members 

Show inherited

## Constructors

`public LegacyDocImportDiagnostic(string code, LegacyDocDiagnosticSeverity severity, string message)` [#](#constructor-ctor-string-officeimo-word-legacydoc-diagnostics-legacydocdiagnosticseverity-string)

[LegacyDocImportDiagnostic.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L12)

Initializes a new legacy DOC import diagnostic.

Parameters

**code string required**

Stable diagnostic code.

**severity OfficeIMO.Word.LegacyDoc.Diagnostics.LegacyDocDiagnosticSeverity required**

Diagnostic severity.

**message string required**

Human-readable diagnostic message.

## Methods

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

[LegacyDocImportDiagnostic.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L32)

Formats the diagnostic as a compact code/severity/message string.

Returns

`string` Formatted diagnostic text.

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

## Properties

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

[LegacyDocImportDiagnostic.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L19)

Gets the stable diagnostic code.

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

[LegacyDocImportDiagnostic.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L22)

Gets diagnostic severity.

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

[LegacyDocImportDiagnostic.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/LegacyDoc/Diagnostics/LegacyDocImportDiagnostic.cs#L25)

Gets human-readable diagnostic text.

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