EwsDownloadFolderById Method (FolderId)
Gets the reference to the folder with given ID in the MS Exchange account.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public EwsFolder DownloadFolderById(
	FolderId id
)

Parameters

id
Type: FolderId
The folder's EWS ID.

Return Value

Type: EwsFolder
The EwsFolder object if the folder exists; otherwise, a null reference (or if an error occurred and ThrowExceptions is false).
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

This method is useful if you need to get info for special folders like Sent Items (such as via passing folder's WellKnownFolderName). See Ews topic for example.

This overload requests basic folder info (so-called First Class Properties) and also folder names (and also folder size if CalculateFolderSizeOnDownload is true).

See Also