# LegacyPptImportDiagnostic

Describes a finding produced while reading a PowerPoint 97-2003 binary presentation.

Class 

`OfficeIMO.PowerPoint.LegacyPpt.Diagnostics`

**Namespace**

`OfficeIMO.PowerPoint.LegacyPpt.Diagnostics`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[LegacyPptImportDiagnostic.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L5)

**Modifiers**

sealed

Describes a finding produced while reading a PowerPoint 97-2003 binary presentation.

## Inheritance

- object
- LegacyPptImportDiagnostic

## 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 [PowerPointDocument.LegacyPptImportDiagnostics](/api/powerpoint/officeimo-powerpoint-powerpointdocument/#property-legacypptimportdiagnostics)

Filter members 

Show inherited

## Constructors

`public LegacyPptImportDiagnostic(string code, string message, LegacyPptDiagnosticSeverity severity, long? streamOffset = null)` [#](#constructor-ctor-string-string-officeimo-powerpoint-legacyppt-diagnostics-legacypptdiagnosticseverity-nullable-system-int64)

[LegacyPptImportDiagnostic.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L5)

Creates an import diagnostic.

Parameters

**code string required**

**message string required**

**severity OfficeIMO.PowerPoint.LegacyPpt.Diagnostics.LegacyPptDiagnosticSeverity required**

**streamOffset long? = null optional**

## Methods

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

[LegacyPptImportDiagnostic.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L26)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

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

[LegacyPptImportDiagnostic.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L14)

Gets the stable diagnostic code.

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

[LegacyPptImportDiagnostic.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L17)

Gets the human-readable diagnostic message.

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

[LegacyPptImportDiagnostic.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L20)

Gets the diagnostic severity.

`public long? StreamOffset { get; }` [#](#property-streamoffset)

[LegacyPptImportDiagnostic.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.PowerPoint/LegacyPpt/Diagnostics/LegacyPptImportDiagnostic.cs#L23)

Gets the offset in the PowerPoint Document stream, when known.

<!-- PowerForge markdown artifact sha256:9123F7DB0F5A489EA8E48A2E49623107C78607CC355B7F70C8FF1183204C5E9F -->
