ImapFolder.CanContainInferiors Property

0 votes
asked Sep 8, 2014 by ale (290 points)
edited Sep 8, 2014

Hi, would you be kind enough to clarify what this property really mean?

The definition for this property from Rebex is: Gets a value indicating whether any subfolders can exist under this folder.

So does it mean if this folder has child folders or user can create child folders under this folder.

Thank you.

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Sep 8, 2014 by Tomas Knopp (58,890 points)
edited Sep 8, 2014
 
Best answer

Hi,

the ImapFolder.CanContainInferiors corresponds to (actually is a negation of) the \Noinferiors attribute defined in RFC 2060 (chapter 7.2.2).

The ImapFolder.CanContainInferiors property says whether any child (inferior) folders can be created under the folder. So if it is 'true' it is possible to have child folders (and you have to check whether some exist), if it is 'false' definitely there should be no child folders.

commented Sep 8, 2014 by ale (290 points)
edited Sep 8, 2014

Thank you. It is more clear now. This is equivalent to Exchange Web services (EWS) FolderPermission.CanCreateSubFolders property. I was debating between using CanCreateSubFolder vs. HasChildFolderCount but your answer confirmed what I was suspecting.

...