# HtmlResolvedResource

Immutable bytes returned by an application-supplied HTML resource resolver.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRenderResourceResolver.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L69)

**Modifiers**

sealed

Immutable bytes returned by an application-supplied HTML resource resolver.

## Inheritance

- object
- HtmlResolvedResource

## 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 [HtmlRenderResourceResolver.EndInvoke](/api/html/officeimo-html-htmlrenderresourceresolver/#method-endinvoke-iasyncresult)
- Method [HtmlRenderResourceResolver.Invoke](/api/html/officeimo-html-htmlrenderresourceresolver/#method-invoke-htmlrenderresourcerequest-cancellationtoken)

### Accepted by parameters 1

- Method [HtmlResourceSession.TryGet](/api/html/officeimo-html-htmlresourcesession/#method-tryget-string-string-officeimo-html-htmlresolvedresource) parameter `resource`

Filter members 

Show inherited

## Constructors

HtmlResolvedResource 2 overloads

`public HtmlResolvedResource(byte[] bytes, string contentType)` [#](#constructor-ctor-byte-string)

[HtmlRenderResourceResolver.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L69)

Creates a resolved resource snapshot.

Parameters

**bytes byte[] required**

**contentType string required**

`public HtmlResolvedResource(byte[] bytes, string contentType, Uri? finalUri, int redirectCount = 0)` [#](#constructor-ctor-byte-string-uri-int32)

[HtmlRenderResourceResolver.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L77)

Creates a resolved resource snapshot with optional redirect provenance. Network-backed resolvers should report the final URI and redirect count so archive and host policies can enforce their redirect boundary.

Parameters

**bytes byte[] required**

**contentType string required**

**finalUri System.Uri? required**

**redirectCount int = 0 optional**

## 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 byte[] Bytes { get; }` [#](#property-bytes)

[HtmlRenderResourceResolver.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L94)

Resolved resource bytes.

`public long Length { get; }` [#](#property-length)

[HtmlRenderResourceResolver.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L101)

Resolved resource length in bytes.

`public string ContentType { get; }` [#](#property-contenttype)

[HtmlRenderResourceResolver.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L115)

Declared media type.

`public Uri? FinalUri { get; }` [#](#property-finaluri)

[HtmlRenderResourceResolver.cs:118](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L118)

Final URI after redirects, when the resolver can report it.

`public int RedirectCount { get; }` [#](#property-redirectcount)

[HtmlRenderResourceResolver.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L121)

Number of redirects followed by the resolver.

`public bool HasRedirectProvenance { get; }` [#](#property-hasredirectprovenance)

[HtmlRenderResourceResolver.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderResourceResolver.cs#L124)

Whether the resolver explicitly reported final-URI and redirect metadata.

<!-- PowerForge markdown artifact sha256:99FEC513D0630C9FB17CDBD8D5541F3377A82C5E445C09509A602F7D9CADE943 -->
