|EwsFolderExists Method (String)|
Checks if the folder with the specified full name exists in the MS Exchange account.
MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public bool FolderExists(
Public Function FolderExists (
folderFullName As String
) As Boolean
- Type: SystemString
The full folder name, such as "Inbox/Nested folder/Deeply nested folder". Null reference (Nothing in Visual Basic) or empty string not allowed.
if the folder exists; otherwise, false
(or if an error occurred and ThrowExceptions
To delimit levels of hierarchy in the folder name, use the same character which is set by FolderLevelDelimiter property. By default, it's '/' (forward slash).
|Scanning the entire folder tree is an expensive operation. If your Exchange account has thousands of folders, consider optimizations like those provided by DownloadFolderByFullName(FolderId, String) method.|See Also