MhtmlRenderingOptions.ShouldRenderAttachment

MhtmlRenderingOptions.ShouldRenderAttachment method

Determines whether a specific attachment should be rendered based on the current options.

public bool ShouldRenderAttachment(string attachmentUrl)
ParameterTypeDescription
attachmentUrlStringThe URL of the attachment to check.

Return Value

true if the attachment should be rendered; otherwise, false.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when attachmentUrl is null.

See Also