> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.EMailAttachment

# <a id="SuperOffice_WebApi_Data_EMailAttachment" /> Class EMailAttachment

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for EMailAttachment.
Information about an attachment

```csharp theme={null}
public class EMailAttachment : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[EMailAttachment](SuperOffice.WebApi.Data.EMailAttachment.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_EMailAttachment__ctor" /> EMailAttachment()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public EMailAttachment()
```

## Properties

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Description" /> Description

Name/description

```csharp theme={null}
public virtual string Description { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Disposition" /> Disposition

Content-Disposition

```csharp theme={null}
public virtual string Disposition { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Encoding" /> Encoding

Content-Transfer-Encoding

```csharp theme={null}
public virtual string Encoding { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Filename" /> Filename

Filename

```csharp theme={null}
public virtual string Filename { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Id" /> Id

Content-ID

```csharp theme={null}
public virtual string Id { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_IsSafeFileExtension" /> IsSafeFileExtension

If the user should be allowed to download and perform other actions on the attachment.

```csharp theme={null}
public virtual bool IsSafeFileExtension { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Size" /> Size

Size of attachment

```csharp theme={null}
public virtual int Size { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Stream" /> Stream

Binary stream for outgoing attachments. This property will not be populated for existing e-mail items.

```csharp theme={null}
public virtual byte[] Stream { get; set; }
```

#### Property Value

[byte](https://learn.microsoft.com/dotnet/api/system.byte)\[]

### <a id="SuperOffice_WebApi_Data_EMailAttachment_Type" /> Type

Attachment Content-Type

```csharp theme={null}
public virtual string Type { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## See Also

[EMailAgent](SuperOffice.WebApi.Agents.EMailAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.IEMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IEMailAgent.md)
- [SuperOffice.WebApi.Agents.EMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.EMailAgent.md)
- [SuperOffice.WebApi.Data.EMailEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMailEntity.md)
- [SuperOffice.WebApi.Data.AttachmentPreview](/en/api/reference/webapi/SuperOffice.WebApi.Data.AttachmentPreview.md)
- [SuperOffice.WebApi.Data.EMail GetEMailFromAttachmentIdRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_GetEMailFromAttachmentIdRequest.md)
- [SuperOffice.WebApi.Data.EMail GetUnsanitizedEMailFromAttachmentIdRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_GetUnsanitizedEMailFromAttachmentIdRequest.md)
