# HtmlArtifactReloadEvidence

Evidence captured after saving, reopening, and exporting a native artifact back to HTML.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlArtifactReloadEvidence.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlArtifactReloadEvidence.cs#L29)

**Modifiers**

sealed

Evidence captured after saving, reopening, and exporting a native artifact back to HTML. The scorer compares the reloaded export with the original source instead of trusting a save call alone.

## Inheritance

- object
- HtmlArtifactReloadEvidence

## 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 [HtmlArtifactReloadEvidence.Failed](/api/html/officeimo-html-htmlartifactreloadevidence/#method-failed-string-string)
- Method [HtmlArtifactReloadEvidence.Succeeded](/api/html/officeimo-html-htmlartifactreloadevidence/#method-succeeded-string-string)

### Accepted by parameters 1

- Method [HtmlRoundTripScorer.Compare](/api/html/officeimo-html-htmlroundtripscorer/#method-compare-string-string-officeimo-html-htmlartifactreloadevidence) parameter `artifactReloadEvidence`

Filter members 

Show inherited

## Methods

`public static HtmlArtifactReloadEvidence Failed(string artifactKind, string? detail = null)` [#](#method-failed-string-string)

[HtmlArtifactReloadEvidence.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlArtifactReloadEvidence.cs#L36)

Creates explicit failed reload evidence.

Parameters

**artifactKind string required**

**detail string? = null optional**

Returns

`HtmlArtifactReloadEvidence`

`public static HtmlArtifactReloadEvidence Succeeded(string artifactKind, string reloadedHtml)` [#](#method-succeeded-string-string)

[HtmlArtifactReloadEvidence.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlArtifactReloadEvidence.cs#L29)

Creates successful reload evidence from HTML exported after reopening the artifact.

Parameters

**artifactKind string required**

**reloadedHtml string required**

Returns

`HtmlArtifactReloadEvidence`

## 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 string ArtifactKind { get; }` [#](#property-artifactkind)

[HtmlArtifactReloadEvidence.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlArtifactReloadEvidence.cs#L16)

Artifact kind, such as DOCX, XLSX, or PPTX.

`public bool ReloadSucceeded { get; }` [#](#property-reloadsucceeded)

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

Whether the artifact was successfully reopened.

`public string? ReloadedHtml { get; }` [#](#property-reloadedhtml)

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

HTML exported from the reopened artifact when reload succeeded.

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

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

Optional caller diagnostic for failed reload evidence.

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