## MhtmlRenderingOptions.ExcludeAttachments method

Excludes multiple attachments from rendering by their URLs. Only used when [`RenderAllAttachments`](../renderallattachments/) is true.

```csharp
public void ExcludeAttachments(IEnumerable<string> attachmentUrls)
```

| Parameter | Type | Description |
| --- | --- | --- |
| attachmentUrls | IEnumerable`1 | An enumerable collection of attachment URLs to exclude. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when *attachmentUrls* is null. |

### See Also

* class [MhtmlRenderingOptions](../)
* namespace [Aspose.Html.Rendering](../../../aspose.html.rendering/)
* assembly [Aspose.HTML](../../../)
