
## EndListMessages {#endlistmessages}

Waits for the asynchronous ListMessages operation to complete.

**Returns:** Returns container for a collection of ImapMessageInfo objects

```cpp
EndListMessages(System::SharedPtr < System::IAsyncResult > asyncResult)
```

| Parameter | Description |
| --- | --- |
| asyncResult | The reference to the pending asynchronous request to wait for. |

