MailClient.RenameFolder Method


Rename a folder on IMAP4/Exchange server.

[Visual Basic]
Public Function RenameFolder( _
    folder As Imap4Folder, _
    newName As String _
)

Public Async Function RenameFolderAsync( _
    folder As Imap4Folder, _
    newName As String _
) As Task
[C#]
public void RenameFolder(
    Imap4Folder folder,
    String newName
);

public async Task RenameFolderAsync(
    Imap4Folder folder,
    String newName
);
[C++]
public: void RenameFolder(
    Imap4Folder^ folder,
    String newName
);
[JScript]
public function RenameFolder( 
    folder: Imap4Folder,
    newName: String
);

Parameters

folder
The folder instanct to rename
newName
The folder new name.

See Also

MailClient.CreateFolder
MailClient.DeleteFolder
MailClient.SubscribeFolder
MailClient.UnsubscribeFolder