---
title: "Aspose::Email::Clients::Pop3::Pop3Client::GetMessageUniqueId method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.pop3/pop3client/getmessageuniqueid/"
product: "Aspose.Email for C++"
description: "Gets the message unique id"
---


## GetMessageUniqueId (1 of 2) {#getmessageuniqueid_1}

Gets the message unique id

**Returns:** String that represents uid of the message

```cpp
GetMessageUniqueId(int32_t sequenceNumber)
```

| Parameter | Description |
| --- | --- |
| sequenceNumber | The sequence number of the message |

---

## GetMessageUniqueId (2 of 2) {#getmessageuniqueid_2}

Gets the message unique id

**Returns:** String that represents uid of the message

```cpp
GetMessageUniqueId(System::SharedPtr < IConnection > connection, int32_t sequenceNumber)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| sequenceNumber | The sequence number of the message |

