## MhtmlRenderingOptions.SelectAttachment method

Selects a specific attachment for rendering by its URL.

```csharp
public void SelectAttachment(string attachmentUrl)
```

| Parameter | Type | Description |
| --- | --- | --- |
| attachmentUrl | String | The URL of the attachment to select. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when *attachmentUrl* is null. |
| ArgumentException | Thrown when *attachmentUrl* is empty. |

### See Also

* class [MhtmlRenderingOptions](../)
* namespace [Aspose.Html.Rendering](../../../aspose.html.rendering/)
* assembly [Aspose.HTML](../../../)
