Conversation Interface
Represents a conversation that includes one or more items stored in one or more folders and stores.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<CoClassAttribute(GetType(ConversationClass))> _
<GuidAttribute("00063101-0000-0000-C000-000000000046")> _
Public Interface Conversation _
Inherits _Conversation
'Usage
Dim instance As Conversation
[CoClassAttribute(typeof(ConversationClass))]
[GuidAttribute("00063101-0000-0000-C000-000000000046")]
public interface Conversation : _Conversation
Remarks
This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Conversation.
The Conversation object is an abstract, aggregated object. Although a conversation can include items of different types, the Conversation object does not correspond to a particular underlying MAPI IMessage : IMAPIProp object.
A conversation represents one or more items in one or more folders and stores. If you move an item in a conversation to the Deleted Items folder and subsequently enumerate the conversation by using the GetChildren(Object), GetRootItems(), or GetTable() method, the item will not be included in the returned object.
To obtain a Conversation object for an existing conversation, use the GetConversation method of the item.
There are actions that you can apply to items in a conversation by calling the SetAlwaysAssignCategories(String, Store), SetAlwaysDelete(OlAlwaysDeleteConversation, Store), or SetAlwaysMoveToFolder(MAPIFolder, Store) method. Each of these actions is applied to all items in the conversation automatically when the method is called; the action is also applied to future items in the conversation as long as the action is still applicable to the conversation. There is no explicit save method on the Conversation object.
Also, when you apply an action to items in a conversation, the corresponding event occurs. For example, the ItemChange event of the Items object occurs when you call SetAlwaysAssignCategories, and the BeforeItemMove event of the Folder object occurs when you call SetAlwaysMoveToFolder.
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace