---
title: "Aspose::Email::Storage::Pst::FolderInfo::EnumerateFolders method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/folderinfo/enumeratefolders/"
product: "Aspose.Email for C++"
description: "Exposes the enumerator, which supports an iteration of subfolders in folder."
---


## EnumerateFolders (1 of 2) {#enumeratefolders_1}

Exposes the enumerator, which supports an iteration of subfolders in folder.

**Returns:** System::Collections::Generic::IEnumerable<T> , that represents an enumerator that iterates through a subfolders in folder.

```cpp
EnumerateFolders()
```

---

## EnumerateFolders (2 of 2) {#enumeratefolders_2}

Exposes the enumerator, which supports an iteration of subfolders in folder.

**Returns:** System::Collections::Generic::IEnumerable<T> , that represents an enumerator that iterates through a subfolders in folder.

```cpp
EnumerateFolders(FolderKind kind)
```

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

