Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MhtmlResource

OfficeIMO.Mhtml

Namespace
OfficeIMO.Mhtml
Assembly
OfficeIMO.Mhtml
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Immutable decoded resource embedded in an MHTML web archive.

Inheritance

  • object
  • MhtmlResource

Usage

Explore 2 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 1

Accepted by parameters 1

Constructors

public MhtmlResource(byte[] content, string? contentType = null, string? contentId = null, string? contentLocation = null, string? fileName = null) #

Creates an embedded MHTML resource snapshot.

Parameters

content byte[] required
contentType string? = null optional
contentId string? = null optional
contentLocation string? = null optional
fileName string? = null optional

Methods

public Stream OpenRead() #

Opens an independent read-only content stream.

Returns

Stream

Properties

public string ContentType { get; } #

Declared MIME content type.

public string? ContentId { get; } #

Content-ID without angle brackets.

public string? ContentLocation { get; } #

Content location as declared by the archive.

public string? FileName { get; } #

Optional resource filename.

public long Length { get; } #

Decoded content length.

public byte[] Content { get; } #

Returns an independent copy of the decoded content.