## ResourceHtmlRenderingEventArgs class

Provides data for the [`ResourceHtmlRendering`](../headersformattingoptions/resourcehtmlrendering/) event: what to render for an attachment in the HTML.

```csharp
public class ResourceHtmlRenderingEventArgs : EventArgs
```

## Constructors

| Name | Description |
| --- | --- |
| [ResourceHtmlRenderingEventArgs](resourcehtmlrenderingeventargs/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [Caption](../../aspose.email/resourcehtmlrenderingeventargs/caption/) { get; set; } | Gets or sets the caption shown for the resource. |
| [Exception](../../aspose.email/resourcehtmlrenderingeventargs/exception/) { get; set; } | Gets or sets the exception that occurred while rendering the resource. |
| [PathToResourceFile](../../aspose.email/resourcehtmlrenderingeventargs/pathtoresourcefile/) { get; set; } | Gets or sets the path of the file to use for the resource, with `ResourceRenderingMode.SaveToFile` or `ResourceRenderingMode.SubstituteFromFile`. |
| [ResourceStream](../../aspose.email/resourcehtmlrenderingeventargs/resourcestream/) { get; set; } | Gets or sets the content to embed for the resource, with `ResourceRenderingMode.EmbedIntoHtml`; it has no effect in the other modes. |

### See Also

* namespace [Aspose.Email](../../aspose.email/)
* assembly [Aspose.Email](../../)


