Managing Conversation Items
Aspose.Email for .NET can be used to manage the conversation items on Exchange Server with the EWSClient class. This class uses Exchange Web Services, which are only available in Exchange Server 2007 and later releases. This article shows how to find, copy, move and delete conversation items on Exchange Server 2010. Microsoft Exchange Server 2010 Service Pack 1 is required for all the features included in this section.
Finding Conversations
To get the conversation information from a specific folder on the Exchange Server:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.FindConversations() method to find all the conversation items from a folder.
- Display the conversation item properties like ID, conversation topic and flag status.
The following code snippet shows you how to find conversations.
Copying Conversations
To copy conversations from one folder to another:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.CopyConversationItems() method to copy the conversation item from source folder to destination folder.
The following code snippet shows you how to copying conversations.
Moving Conversations
To move conversations from one folder to another:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.MoveConversationItems() method to move a conversation from the source folder to the destination folder.
The following code snippet shows you how to moving conversations.
Deleting Conversations
To delete conversations from a folder:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.DeleteConversationItems() method to delete the conversation item from the source folder.
The following code snippet shows you how to delete conversations.