---
title: "Aspose::Email::Storage::Pst::FolderInfo::GetSubFolders method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/folderinfo/getsubfolders/"
product: "Aspose.Email for C++"
description: "Gets collection of subfolders."
---


## GetSubFolders (1 of 3) {#getsubfolders_1}

Gets collection of subfolders.

**Returns:** The FolderInfo collection.

```cpp
GetSubFolders()
```

---

## GetSubFolders (2 of 3) {#getsubfolders_2}

Gets collection of subfolders.

**Returns:** The FolderInfo collection.

```cpp
GetSubFolders(FolderKind kind)
```

| Parameter | Description |
| --- | --- |
| kind | The FolderKind that represents kind of folder. |

---

## GetSubFolders (3 of 3) {#getsubfolders_3}

Gets collection of subfolders.

**Returns:** The FolderInfo collection.

```cpp
GetSubFolders(System::SharedPtr < Tools::Search::MailQuery > query)
```

| Parameter | Description |
| --- | --- |
| query | MailQuery that represents search query. |

