---
title: "Task.UniqueId"
url: "https://reference.aspose.com/email/net/aspose.email.calendar/task/uniqueid/"
product: "Aspose.Email for .NET API Reference"
description: "Task property. Gets or sets the unique identifier of the task the iCalendar UID property"
---

## Task.UniqueId property

Gets or sets the unique identifier of the task (the iCalendar UID property).

```csharp
public string UniqueId { get; set; }
```

### Property Value

A globally unique identifier of the task.

## Remarks

All copies of the same task share this identifier, which is how an update or a cancellation is matched to the task it refers to. Keep it unchanged when resending a task, and give a new task an identifier of its own.

### See Also

* class [Task](../)
* namespace [Aspose.Email.Calendar](../../task/)
* assembly [Aspose.Email](../../../)


