## ReferenceAttachment class

This class represents a reference attachment

```csharp
public class ReferenceAttachment : Attachment
```

## Constructors

| Name | Description |
| --- | --- |
| [ReferenceAttachment](referenceattachment/#constructor)() | Initializes a new instance of `ReferenceAttachment`. |
| [ReferenceAttachment](referenceattachment/#constructor_1)(string) | Initializes a new instance of `ReferenceAttachment`. |
| [ReferenceAttachment](referenceattachment/#constructor_2)(Uri) | Initializes a new instance of `ReferenceAttachment`. |

## Properties

| Name | Description |
| --- | --- |
| [ContentDisposition](../../aspose.email/attachment/contentdisposition/) { get; } | Gets Content-Disposition header |
| [ContentId](../../aspose.email/attachmentbase/contentid/) { get; set; } | Gets or sets the content id. |
| [ContentStream](../../aspose.email/attachmentbase/contentstream/) { get; set; } | Gets or sets the content stream. |
| [ContentType](../../aspose.email/attachmentbase/contenttype/) { get; set; } | Gets or sets the type of the content. |
| virtual [Headers](../../aspose.email/attachmentbase/headers/) { get; } | Gets headers collection of attachment. |
| [IsEmbeddedMessage](../../aspose.email/attachment/isembeddedmessage/) { get; } | Gets a value indicating whether the attachment is an embedded message. |
| [IsTnef](../../aspose.email/attachment/istnef/) { get; } | Gets a value indicating whether the attachment is TNEF formatted message. |
| [IsUri](../../aspose.email/attachment/isuri/) { get; } | Gets a value indicating whether attachment is URI-attachment. |
| [Name](../../aspose.email/attachment/name/) { get; set; } | Gets or sets an attachment name |
| [NameEncoding](../../aspose.email/attachment/nameencoding/) { get; set; } | Gets or sets an encoding of attachment name |
| [PermissionType](../../aspose.email/referenceattachment/permissiontype/) { get; set; } | Specifies the permission type. |
| [PreferredTextEncoding](../../aspose.email/attachment/preferredtextencoding/) { get; set; } | Gets or sets a preferred text encoding |
| [ProviderType](../../aspose.email/referenceattachment/providertype/) { get; set; } | Specifies the provider type. |
| [TransferEncoding](../../aspose.email/attachmentbase/transferencoding/) { get; set; } | Gets or sets the transfer encoding. |
| [UniqueId](../../aspose.email/attachmentbase/uniqueid/) { get; } | Gets or sets a unique identifier for the attachment that will be constant for each application run. |
| [Uri](../../aspose.email/referenceattachment/uri/) { get; set; } | Specifies the Url of the provider endpoint. |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](../../aspose.email/attachmentbase/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| virtual [Save](../../aspose.email/attachmentbase/save/)(Stream) | Saves the specified stream. |
| virtual [Save](../../aspose.email/attachmentbase/save/)(string) | Saves the specified file name. |

### See Also

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


