---
title: "Aspose::Email::Clients::Graph::IGraphClient::ListFolders method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.graph/igraphclient/listfolders/"
product: "Aspose.Email for C++"
description: "List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox."
---


## ListFolders (1 of 2) {#listfolders_1}

List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.

**Returns:** Returns list of subfolders of the root folder

```cpp
ListFolders(System::SharedPtr < ODataQueryBuilder > queryBuilder)
```

| Parameter | Description |
| --- | --- |
| queryBuilder | Optional OData query builder for filtering folders. |

---

## ListFolders (2 of 2) {#listfolders_2}

List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.

**Returns:** Returns list of subfolders of the root folder

```cpp
ListFolders(System::String id, System::SharedPtr < ODataQueryBuilder > queryBuilder)
```

| Parameter | Description |
| --- | --- |
| id | Parent folder id |
| queryBuilder | Optional OData query builder for filtering folders. |

