
## GetMessageHeaders (1 of 4) {#getmessageheaders_1}

Gets the message headers

**Returns:** HeaderCollection that represents collection of the headers

```cpp
GetMessageHeaders(int32_t sequenceNumber)
```

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

---

## GetMessageHeaders (2 of 4) {#getmessageheaders_2}

Gets the message headers

**Returns:** HeaderCollection that represents collection of the headers

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

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

---

## GetMessageHeaders (3 of 4) {#getmessageheaders_3}

Gets the message headers

**Returns:** HeaderCollection that represents collection of the headers

```cpp
GetMessageHeaders(System::SharedPtr < IConnection > connection, System::String uniqueId)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| uniqueId | The unique id of the message |

---

## GetMessageHeaders (4 of 4) {#getmessageheaders_4}

Gets the message headers

**Returns:** HeaderCollection that represents collection of the headers

```cpp
GetMessageHeaders(System::String uniqueId)
```

| Parameter | Description |
| --- | --- |
| uniqueId | The unique id of the message |

