# EmailHtmlDataInspector

Optional HTML adapter over EmailDataArtifact and the existing HTML/content-safety engines.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email.Html`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[EmailHtmlDataInspector.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email.Html/Data/EmailHtmlDataInspector.cs#L44)

**Modifiers**

static

Optional HTML adapter over EmailDataArtifact and the existing HTML/content-safety engines.

## Inheritance

- object
- EmailHtmlDataInspector

Filter members 

Show inherited

## Methods

Inspect 2 overloads

`public static EmailHtmlDataInspectionReport Inspect(string path, EmailDataInspectionOptions? options = null, int maxHtmlCharacters = 1000000, CancellationToken cancellationToken = default)` [#](#method-inspect-string-officeimo-email-data-emaildatainspectionoptions-int32-threading-cancellationtoken)

[EmailHtmlDataInspector.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email.Html/Data/EmailHtmlDataInspector.cs#L44)

Opens once, inspects bounded metadata and original HTML, then closes resources. No network or mutation occurs.

Parameters

**path string required**

**options OfficeIMO.Email.Data.EmailDataInspectionOptions? = null optional**

**maxHtmlCharacters int = 1000000 optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailHtmlDataInspectionReport`

`public static EmailHtmlDataInspectionReport Inspect(EmailDataOpenResult opened, EmailDataInspectionOptions? options = null, int maxHtmlCharacters = 1000000, CancellationToken cancellationToken = default)` [#](#method-inspect-officeimo-email-data-emaildataopenresult-officeimo-email-data-emaildatainspectionoptions-int32-threading-cancellationtoken)

[EmailHtmlDataInspector.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email.Html/Data/EmailHtmlDataInspector.cs#L53)

Inspects an existing artifact without disposing it. The original body and attachment streams are left intact.

Parameters

**opened OfficeIMO.Email.Data.EmailDataOpenResult required**

**options OfficeIMO.Email.Data.EmailDataInspectionOptions? = null optional**

**maxHtmlCharacters int = 1000000 optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailHtmlDataInspectionReport`

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

<!-- PowerForge markdown artifact sha256:168D24337D926C60930AC12E6D90945CF7969CBC0B2FAC4713C8E41E1C7EF680 -->
