
## FetchAttachment (1 of 2) {#fetchattachment_1}

Fetches the specified attachment

**Returns:** Attachment that represents attachment

```cpp
FetchAttachment(int32_t sequenceNumber, System::String attachmentName)
```

| Parameter | Description |
| --- | --- |
| sequenceNumber | The sequence number of a message |
| attachmentName | A name of attachment |

---

## FetchAttachment (2 of 2) {#fetchattachment_2}

Fetches the specified attachment

**Returns:** Attachment that represents attachment

```cpp
FetchAttachment(System::SharedPtr < IConnection > connection, int32_t sequenceNumber, System::String attachmentName)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| sequenceNumber | The sequence number of a message |
| attachmentName | A name of attachment |

