MhtmlRenderingOptions.ExcludeAttachment

MhtmlRenderingOptions.ExcludeAttachment method

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

public void ExcludeAttachment(string attachmentUrl)
ParameterTypeDescription
attachmentUrlStringThe URL of the attachment to exclude.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when attachmentUrl is null.
ArgumentExceptionThrown when attachmentUrl is empty.

See Also