Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetConversation Method
Collapse the table of content
Expand the table of content

_ConversationHeader.GetConversation Method

Obtains a Conversation object that represents the conversation to which this conversation header belongs.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

'Declaration
<DispIdAttribute()> _
Function GetConversation As Conversation
'Usage
Dim instance As _ConversationHeader
Dim returnValue As Conversation

returnValue = instance.GetConversation()

Return Value

Type: Microsoft.Office.Interop.Outlook.Conversation
Returns a Conversation object that represents the conversation to which this conversation header belongs.

GetConversation returns Nothing (a null reference (Nothing in Visual Basic) in C#) if no conversation exists for the item. No conversation exists for an item in the following scenarios:

  • The item has not been saved. An item can be saved programmatically, by user action, or by auto-save.

  • For an item that can be sent (for example, a mail item, appointment item, or contact item), the item has not been sent.

  • Conversations are disabled through the Windows registry.

  • The store does not support the Conversation view (for example, Outlook is running in classic online mode against a version of Microsoft Exchange that is earlier than Microsoft Exchange Server 2010). Use the IsConversationEnabled property of the Store object to determine whether the store supports the Conversation view.

Show:
© 2015 Microsoft