> ## 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.AttachmentEntity

# <a id="SuperOffice_WebApi_Data_AttachmentEntity" /> Class AttachmentEntity

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

Carrier object for AttachmentEntity.
The Attachment carrier represent meta data for a Service attachment

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[AttachmentEntity](SuperOffice.WebApi.Data.AttachmentEntity.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)

## Examples

Get AttachmentEntity 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new TicketAgent(configuration);
var attachmentEntity = agent.GetAttachmentEntity( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_AttachmentEntity__ctor" /> AttachmentEntity()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_AttSize" /> AttSize

The size (in bytes) for the attachment.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_AttachmentId" /> AttachmentId

The primary key (auto-incremented)

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_AuthKey" /> AuthKey

The key used for authenticating access to this attachment.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_ContentId" /> ContentId

The content\_id of this attachment, used for inline images

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_ContentType" /> ContentType

The content type for the attachment (e.g. \&apos;applaction/octet-stream\&apos; or \&apos;application/vnd.openxmlformats-officedocument.wordprocessingml.document\&apos;).

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_AttachmentEntity_InlineImage" /> InlineImage

True if this attachment is inlined in the html\_body.

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

#### Property Value

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

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

Is file considered to be safe (based on extension and settings)

```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_AttachmentEntity_Name" /> Name

The filename for the attachment.

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

#### Property Value

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

## See Also

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


## Related topics

- [SuperOffice.WebApi.Agents.ITicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITicketAgent.md)
- [SuperOffice.WebApi.Agents.TicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TicketAgent.md)
- [SuperOffice.WebApi.Data.AttachmentPreview](/en/api/reference/webapi/SuperOffice.WebApi.Data.AttachmentPreview.md)
- [SuperOffice.WebApi.Data.TicketMessageEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageEntity.md)
- [SuperOffice.WebApi.Data.TicketMessageContent](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessageContent.md)
- [SuperOffice.WebApi.Data.ReplyTemplateParsed](/en/api/reference/webapi/SuperOffice.WebApi.Data.ReplyTemplateParsed.md)
