# HtmlConversionResult<T>

Shared result contract for HTML conversions that produce a native target artifact.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlConversionResult.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L31)

**Implements**

`IOfficeResult<T>` `IOfficeResult`

**Modifiers**

abstract

Shared result contract for HTML conversions that produce a native target artifact.

## Inheritance

- object
- HtmlConversionResult<T>

## Type Parameters

**T**

Value produced by the conversion.

Filter members 

Show inherited

## Methods

`public T RequireValue()` [#](#method-requirevalue)

[HtmlConversionResult.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L37)

Returns the native artifact when conversion succeeded, or throws a structured conversion exception.

Returns

`T`

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

[HtmlConversionResult.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L31)

Throws when the conversion report describes possible fidelity loss.

## 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 T Value { get; }` [#](#property-value)

[HtmlConversionResult.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L19)

Value produced by the conversion.

`public HtmlConversionReport Report { get; }` [#](#property-report)

[HtmlConversionResult.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L22)

Diagnostics and fidelity outcome for this conversion.

`public bool Succeeded { get; }` [#](#property-succeeded)

[HtmlConversionResult.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L25)

Whether conversion completed without an error diagnostic.

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

[HtmlConversionResult.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionResult.cs#L28)

Whether the conversion approximated, omitted, or failed any source content.

<!-- PowerForge markdown artifact sha256:181B8214FF8E83B8D32198A4AC56E66158B87D57616F7B6D65FFB57CB7AA54CE -->
