MailBee.NET Objects 4.0

Folder.NestingLevel Property

Gets the level of nesting of this folder into parent folders.

public int NestingLevel {get;}

Property Value

A zero-based integer value indicating the level of nesting of this folder into parent folders if any. If the folder is a top level folder, this value is 0.

Remarks

For instance, if the full name of the folder is "Inbox/Orders/April 2006" and Delimiter is "/", this property will return 2.

The common use of this property is displaying folder list with indentations according to folder nesting levels. You can find the corresponding code sample in DownloadFolders topic.

See Also

Folder Class | MailBee.ImapMail Namespace