# OdfConversionResult<TDocument>

Converted document together with the feature mapping evidence for that conversion.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfConversionResult.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L9)

**Base**

`OfficeConversionResult<TDocument>`

**Modifiers**

sealed

Converted document together with the feature mapping evidence for that conversion.

## Inheritance

- OfficeConversionResult<TDocument>
- OdfConversionResult<TDocument>

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

- Method [OdfConversionResult<T>.ApplyPolicy](/api/open-document/officeimo-opendocument-odfconversionresult/#method-applypolicy-officeimo-opendocument-odfconversionlosspolicy)
- Method [OdgDocument.ToDrawings](/api/open-document/officeimo-opendocument-odgdocument/#method-todrawings-officeimo-opendocument-odfconversionlosspolicy-boolean-int32-threading-cancellationtoken)
- Method [OdgPage.ToDrawing](/api/open-document/officeimo-opendocument-odgpage/#method-todrawing-officeimo-opendocument-odfconversionlosspolicy-boolean)

## Type Parameters

**TDocument**

Filter members 

Show inherited

## Constructors

`public OdfConversionResult<TDocument>(TDocument value, OdfConversionReport report)` [#](#constructor-ctor-officeimo-opendocument-odfconversionreport)

[OdfConversionResult.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L9)

Creates a conversion result.

Parameters

**value TDocument required**

**report OfficeIMO.OpenDocument.OdfConversionReport required**

## Methods

`public OdfConversionResult<TDocument> ApplyPolicy(OdfConversionLossPolicy policy)` [#](#method-applypolicy-officeimo-opendocument-odfconversionlosspolicy)

[OdfConversionResult.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L32)

Applies a loss policy and returns this result for fluent adapter composition. A rejected disposable conversion value is disposed before the policy exception is rethrown.

Parameters

**policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required**

Returns

`OdfConversionResult<TDocument>`

`public TDocument GetValue(OdfConversionLossPolicy policy)` [#](#method-getvalue-officeimo-opendocument-odfconversionlosspolicy)

[OdfConversionResult.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L18)

Returns the converted document after applying an explicit loss policy.

Parameters

**policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required**

Returns

`TDocument`

`public override void ThrowIfLoss()` [#](#method-throwifloss)

[OdfConversionResult.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L13)

Throws when the conversion was lossy and disposes a rejected disposable document first.

## Inherited Methods

`public void Deconstruct(out TDocument value, out OfficeConversionReport report)` [#](#method-deconstruct-tdocument-officeconversionreport)

Parameters

**value TDocument required**

**report OfficeConversionReport required**

`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 OdfConversionReport Report { get; }` [#](#property-report)

[OdfConversionResult.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Conversion/OdfConversionResult.cs#L6)

Gets the typed conversion report.

## Inherited Properties

`public TDocument Value { get; }` [#](#property-value)

`public bool HasLoss { get; }` [#](#property-hasloss)

<!-- PowerForge markdown artifact sha256:24229483429141D74A6966A646A1FB19E6D9364646A6EFDCAD9AE4B2AD0FEFD7 -->
