EwsFindFolderIdByFullName Method (String) |
Gets the ID of the folder denoted by its full name in the MS Exchange account.
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public FolderId FindFolderIdByFullName(
string folderFullName
)
Public Function FindFolderIdByFullName (
folderFullName As String
) As FolderId
Parameters
- folderFullName
- 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.
Return Value
Type:
FolderIdThe
FolderId object if the folder exists; otherwise, a null reference (or if an error occurred and
ThrowExceptions is
false).
Exceptions Remarks 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).
Key difference of this method from DownloadFolderByFullName(String) is that it returns just ID. This means that MailBee requests less info from the server making this method a bit more efficient.
However, if you need the detailed info about the folder (e.g. message count, unseen count, etc), use DownloadFolderByFullName(String) instead.
See Also