We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ExchangeClient MoveItem Method sample

Hello,

I need to move a message using the ExchangeClient class to another folder. Checking the methods I’m assuming this can be achieved using the MoveItem method but the documentation is not clear enough to me. What should I use as source and destination?

Thanks.


This message was posted using Page2Forum from ExchangeClient.MoveItem Method - Aspose.Network for .NET

Hi,



The MoveItem() method takes 2 parameter:

  1. Full URI of source message (message to be copied)
  2. Full URI of destination folder and message name
Example:
ExchangeClient client = new ExchangeClient(mailboxUri, credential);
ExchangeMailboxInfo mailbox = client.GetMailboxInfo();
client.MoveItem(msgInboxInfo.UniqueUri, mailbox.InboxUri + "/Folder/" + msgInboxInfo.Subject);

We are in the process of adding code examples to all the public API and it will become available soon.