MhtmlRenderingOptions.ExcludeAttachments

MhtmlRenderingOptions.ExcludeAttachments method

Excludes multiple attachments from rendering by their URLs. Only used when RenderAllAttachments is true.

public void ExcludeAttachments(IEnumerable<string> attachmentUrls)
ParameterTypeDescription
attachmentUrlsIEnumerable`1An enumerable collection of attachment URLs to exclude.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when attachmentUrls is null.

See Also