exclude_attachment method

exclude_attachment

Excludes a specific attachment from rendering by its URL. Only used when MhtmlRenderingOptions.render_all_attachments is true.

def exclude_attachment(self, attachment_url):
    ...
ParameterTypeDescription
attachment_urlstrThe URL of the attachment to exclude.

Exceptions

ExceptionDescription
ArgumentNullExceptionThrown when attachment_url is null.
ArgumentExceptionThrown when attachment_url is empty.

See Also