Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlResolvedResource

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 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 byte[] required
contentType string required
public HtmlResolvedResource(byte[] bytes, string contentType, Uri? finalUri, int 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 byte[] required
contentType string required
finalUri System.Uri? required
redirectCount int = 0 optional

Properties

public byte[] Bytes { get; } #

Resolved resource bytes.

public long 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 int RedirectCount { get; } #

Number of redirects followed by the resolver.

public bool HasRedirectProvenance { get; } #

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