EwsFindFolderIdByShortName Method
Gets the ID of the given folder in the MS Exchange account.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public FolderId FindFolderIdByShortName(
	FolderId parentFolderId,
	string folderName


Type: FolderId
The ID of the parent folder where to search for the given folder. If a null reference (Nothing in Visual Basic), RootFolderType will be assumed.
Type: SystemString
The folder name. Null reference or empty string not allowed.

Return Value

Type: FolderId
The FolderId object if the folder exists; otherwise, a null reference (or if an error occurred and ThrowExceptions is false).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
NotImplementedExceptionThe .NET runtime is .NET Core.

parentFolderId must be the immediate parent of folderName folder. Also, folderName must be a short name (not a full name with nested folder names in it).

Key difference of this method from DownloadFolderByShortName(FolderId, 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 DownloadFolderByShortName(FolderId, String) instead.

Note Note
This method is not implemented in .NET Core. Use FindFolderIdByShortNameAsync(FolderId, String) instead.
See Also