Creates a folder 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 bool CreateFolder(
string newFolderName,
FolderId parentFolderId
)
Public Function CreateFolder (
newFolderName As String,
parentFolderId As FolderId
) As Boolean
Parameters
- newFolderName
- Type: SystemString
The folder name. Null reference (Nothing in Visual Basic) or empty string not allowed. - parentFolderId
- Type: FolderId
The ID of the parent folder where to create the new folder. If a null reference (Nothing in Visual Basic), RootFolderType will be assumed.
Return Value
Type:
Booleantrue if succeeded; otherwise,
false.
Exceptions Remarks newFolderName must be a short name (not a full name with nested folder names in it). To create a folder by its full name, you'll need to create all levels separately
(if they do not already exist).
See Also