MhtmlRenderingOptions class

MhtmlRenderingOptions class

Represents options for rendering MHTML documents with attachment selection.

The MhtmlRenderingOptions type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the MhtmlRenderingOptions class.

Properties

PropertyDescription
render_all_attachmentsGets or sets a value indicating whether to render all attachments found in the MHTML document.
When true (default), all attachments are rendered.
When false, only explicitly selected attachments are rendered.

Methods

MethodDescription
select_attachmentSelects a specific attachment for rendering by its URL.
select_attachments
exclude_attachmentExcludes a specific attachment from rendering by its URL.
Only used when MhtmlRenderingOptions.render_all_attachments is true.
exclude_attachments
resetClears all attachment selection/exclusion settings and restores default behavior.
should_render_attachmentDetermines whether a specific attachment should be rendered based on the current options.

See Also