# HtmlConversionProfileContract

Describes the behavior callers can expect from a shared OfficeIMO HTML conversion profile.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlConversionProfileContract.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L10)

**Modifiers**

sealed

Describes the behavior callers can expect from a shared OfficeIMO HTML conversion profile.

## Inheritance

- object
- HtmlConversionProfileContract

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

- Property [HtmlConversionDocument.ProfileContract](/api/html/officeimo-html-htmlconversiondocument/#property-profilecontract)
- Method [HtmlConversionProfileContracts.Get](/api/html/officeimo-html-htmlconversionprofilecontracts/#method-get-officeimo-html-htmlconversionprofile)
- Property [HtmlConversionProfileContracts.All](/api/html/officeimo-html-htmlconversionprofilecontracts/#property-all)

Filter members 

Show inherited

## Constructors

`public HtmlConversionProfileContract(HtmlConversionProfile profile, string name, string intendedUse, string fidelityGoal, IEnumerable<string> supportedHtml, IEnumerable<string> supportedCss, IEnumerable<string> resourceGuarantees, IEnumerable<string> diagnosticGuarantees)` [#](#member-c9879ab2e6fd18724a122648)

[HtmlConversionProfileContract.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L10)

Creates a conversion profile contract.

Parameters

**profile OfficeIMO.Html.HtmlConversionProfile required**

**name string required**

**intendedUse string required**

**fidelityGoal string required**

**supportedHtml System.Collections.Generic.IEnumerable<string> required**

**supportedCss System.Collections.Generic.IEnumerable<string> required**

**resourceGuarantees System.Collections.Generic.IEnumerable<string> required**

**diagnosticGuarantees System.Collections.Generic.IEnumerable<string> required**

## 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 HtmlConversionProfile Profile { get; }` [#](#property-profile)

[HtmlConversionProfileContract.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L30)

Profile identifier used by adapters and gallery manifests.

`public string Name { get; }` [#](#property-name)

[HtmlConversionProfileContract.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L33)

Human readable profile name.

`public string IntendedUse { get; }` [#](#property-intendeduse)

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

Primary scenario the profile is optimized for.

`public string FidelityGoal { get; }` [#](#property-fidelitygoal)

[HtmlConversionProfileContract.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L39)

Fidelity target expressed as a caller-facing contract.

`public IReadOnlyList<string> SupportedHtml { get; }` [#](#property-supportedhtml)

[HtmlConversionProfileContract.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L42)

HTML structures the profile treats as supported capability, not accidental behavior.

`public IReadOnlyList<string> SupportedCss { get; }` [#](#property-supportedcss)

[HtmlConversionProfileContract.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L45)

CSS capabilities the profile treats as supported capability, not accidental behavior.

`public IReadOnlyList<string> ResourceGuarantees { get; }` [#](#property-resourceguarantees)

[HtmlConversionProfileContract.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L48)

Resource handling guarantees such as policy enforcement and manifest reporting.

`public IReadOnlyList<string> DiagnosticGuarantees { get; }` [#](#property-diagnosticguarantees)

[HtmlConversionProfileContract.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Engine/HtmlConversionProfileContract.cs#L51)

Diagnostics callers can rely on when content is simplified, rejected, or degraded.

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