---
title: "Aspose::Email::Mapi::ReferenceAttachmentOptions::set_PreviewUrl method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/referenceattachmentoptions/set_previewurl/"
product: "Aspose.Email for C++"
description: "Sets the preview URL of the reference attachment."
---


## set_PreviewUrl {#set_previewurl}

Sets the preview URL of the reference attachment. This URL can be used to generate a preview of the resource, if supported by the provider. The default value is Empty .

**Returns:** void Aspose::Email::Mapi::

```cpp
set_PreviewUrl(System::String value)
```

| Parameter | Description |
| --- | --- |
| value |  |

