EwsRenameFolder Method
Renames a folder 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 bool RenameFolder(
	string folderNewName,
	FolderId id
)

Parameters

folderNewName
Type: SystemString
The new name of the folder. Null reference (Nothing in Visual Basic) or empty string not allowed.
id
Type: FolderId
The ID of the folder being renamed. Null reference not allowed.

Return Value

Type: Boolean
true if succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

folderNewName must be a short name (not a full name with nested folder names in it). You can use RenameOrMoveFolder(String, String, ListEwsFolder) method to rename a folder by its full name.

See Also