EwsDownloadFolderById Method (FolderId, PropertySet) |
Gets the reference to the folder with given ID in the MS Exchange account, also requesting the specified properties.
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EwsFolder DownloadFolderById(
FolderId id,
PropertySet propSet
)
Public Function DownloadFolderById (
id As FolderId,
propSet As PropertySet
) As EwsFolder
Parameters
- id
- Type: FolderId
The folder's EWS ID. - propSet
- Type: PropertySet
Extra properties of the folder to request from the Exchange server. If a null reference (Nothing in Visual Basic), basic properties are requested.
Return Value
Type:
EwsFolderThe
EwsFolder object if the folder exists; otherwise, a null reference (or if an error occurred and
ThrowExceptions is
false).
Exceptions Remarks This method is useful if you need to get info for special folders like Sent Items (such as via passing folder's WellKnownFolderName). This particular overload is for advanced purposes if you need property set different from
those provided by basic DownloadFolderById(FolderId) overload.
See Also