API Reference

Class

MhtmlResource

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Immutable decoded resource embedded in an MHTML web archive.

Inheritance

  • Object
  • MhtmlResource

Usage

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

Returned or exposed by

Accepted by parameters

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 System.Byte[] requiredposition: 0
contentType System.String = null optionalposition: 1
contentId System.String = null optionalposition: 2
contentLocation System.String = null optionalposition: 3
fileName System.String = null optionalposition: 4

Methods

public Stream OpenRead() #
Returns: Stream

Opens an independent read-only content 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 Int64 Length { get; } #

Decoded content length.

public Byte[] Content { get; } #

Returns an independent copy of the decoded content.