---
title: "Task.Attachments"
url: "https://reference.aspose.com/email/net/aspose.email.calendar/task/attachments/"
product: "Aspose.Email for .NET API Reference"
description: "Task property. Gets or sets the files attached to the task"
---

## Task.Attachments property

Gets or sets the files attached to the task.

```csharp
public AttachmentCollection Attachments { get; set; }
```

### Property Value

An [`AttachmentCollection`](../../../aspose.email/attachmentcollection/) with the files that belong to the task.

## Remarks

The collection is owned by the task and is released by [`Dispose`](../dispose/), so do not keep using the attachments after the task has been disposed of.

### See Also

* class [AttachmentCollection](../../../aspose.email/attachmentcollection/)
* class [Task](../)
* namespace [Aspose.Email.Calendar](../../task/)
* assembly [Aspose.Email](../../../)


