API Reference

Class

HtmlResolvedResource

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

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

Inheritance

  • Object
  • HtmlResolvedResource

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

HtmlResolvedResource 2 overloads
public HtmlResolvedResource(Byte[] bytes, String contentType) #

Creates a resolved resource snapshot.

Parameters

bytes System.Byte[] requiredposition: 0
contentType System.String requiredposition: 1
public HtmlResolvedResource(Byte[] bytes, String contentType, Uri finalUri, Int32 redirectCount = 0) #

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 System.Byte[] requiredposition: 0
contentType System.String requiredposition: 1
finalUri System.Uri requiredposition: 2
redirectCount System.Int32 = 0 optionalposition: 3

Properties

public Byte[] Bytes { get; } #

Resolved resource bytes.

public Int64 Length { get; } #

Resolved resource length in bytes.

public String ContentType { get; } #

Declared media type.

public Uri FinalUri { get; } #

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

public Int32 RedirectCount { get; } #

Number of redirects followed by the resolver.

public Boolean HasRedirectProvenance { get; } #

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