Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlResolvedResource

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision 804a7612eee4 with working tree changes
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.

Accepted by parameters 1

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.