## MhtmlRenderingOptions.ShouldRenderAttachment method

Determines whether a specific attachment should be rendered based on the current options.

```csharp
public bool ShouldRenderAttachment(string attachmentUrl)
```

| Parameter | Type | Description |
| --- | --- | --- |
| attachmentUrl | String | The URL of the attachment to check. |

### Return Value

true if the attachment should be rendered; otherwise, false.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when *attachmentUrl* is null. |

### See Also

* class [MhtmlRenderingOptions](../)
* namespace [Aspose.Html.Rendering](../../../aspose.html.rendering/)
* assembly [Aspose.HTML](../../../)
