---
title: "Aspose::Email::Clients::Pop3::Pop3Client::BeginGetMessageCount method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.pop3/pop3client/begingetmessagecount/"
product: "Aspose.Email for C++"
description: "Begins GetMessageCount operation asynchronously"
---


## BeginGetMessageCount (1 of 12) {#begingetmessagecount_1}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount()
```

---

## BeginGetMessageCount (2 of 12) {#begingetmessagecount_2}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(bool closeTransaction)
```

| Parameter | Description |
| --- | --- |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |

---

## BeginGetMessageCount (3 of 12) {#begingetmessagecount_3}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(bool closeTransaction, System::AsyncCallback callback)
```

| Parameter | Description |
| --- | --- |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |
| callback | References a method to be called when a corresponding asynchronous operation completes. |

---

## BeginGetMessageCount (4 of 12) {#begingetmessagecount_4}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(bool closeTransaction, System::AsyncCallback callback, System::SharedPtr < System::Object > state)
```

| Parameter | Description |
| --- | --- |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |
| callback | References a method to be called when a corresponding asynchronous operation completes. |
| state | The state. |

---

## BeginGetMessageCount (5 of 12) {#begingetmessagecount_5}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::AsyncCallback callback)
```

| Parameter | Description |
| --- | --- |
| callback | References a method to be called when a corresponding asynchronous operation completes. |

---

## BeginGetMessageCount (6 of 12) {#begingetmessagecount_6}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::AsyncCallback callback, System::SharedPtr < System::Object > state)
```

| Parameter | Description |
| --- | --- |
| callback | References a method to be called when a corresponding asynchronous operation completes. |
| state | The state. |

---

## BeginGetMessageCount (7 of 12) {#begingetmessagecount_7}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |

---

## BeginGetMessageCount (8 of 12) {#begingetmessagecount_8}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection, bool closeTransaction)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |

---

## BeginGetMessageCount (9 of 12) {#begingetmessagecount_9}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection, bool closeTransaction, System::AsyncCallback callback)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |
| callback | References a method to be called when a corresponding asynchronous operation completes. |

---

## BeginGetMessageCount (10 of 12) {#begingetmessagecount_10}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection, bool closeTransaction, System::AsyncCallback callback, System::SharedPtr < System::Object > state)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| closeTransaction | Indicates if current transaction has to be closed, before the list is retrieved. |
| callback | References a method to be called when a corresponding asynchronous operation completes. |
| state | The state. |

---

## BeginGetMessageCount (11 of 12) {#begingetmessagecount_11}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection, System::AsyncCallback callback)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| callback | References a method to be called when a corresponding asynchronous operation completes. |

---

## BeginGetMessageCount (12 of 12) {#begingetmessagecount_12}

Begins GetMessageCount operation asynchronously

**Returns:** System::IAsyncResult that represents the status of an asynchronous operation.

```cpp
BeginGetMessageCount(System::SharedPtr < IConnection > connection, System::AsyncCallback callback, System::SharedPtr < System::Object > state)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| callback | References a method to be called when a corresponding asynchronous operation completes. |
| state | The state. |

