WebDAV .NET for Exchange > Tutorial > List folder and subfolders

The following example shows you how to use List method to recursive list content of entire mailbox.

C# example
VB example