Class ConversationHeader (Outlook VBA)
The class ConversationHeader represents a Microsoft Outlook conversation header in a Conversation view. To use a ConversationHeader class variable it first needs to be instantiated, for example
Class
Returns an OlObjectClass constant that indicates the class of the object. Here you can find possible values for
Dim chr As ConversationHeader: Set chr =
Dim oocsClass As OlObjectClass
oocsClass = chr.Class
ConversationID
Returns a String that uniquely identifies the Conversation object to which this conversation header belongs.
This property associates the conversation header with other items in the same conversation. These items and the conversation all have the same value in their ConversationID property. This property corresponds with the MAPI property PidTagConversationId.
Dim chr As ConversationHeader: Set chr =
Dim strConversationID As String
strConversationID = chr.ConversationID
ConversationTopic
Returns a String value that represents the topic of the conversation thread of the conversation header.
Corresponds to the MAPI property PidTagConversationTopic.
Dim chr As ConversationHeader: Set chr =
Dim strConversationTopic As String
strConversationTopic = chr.ConversationTopic
GetConversation
Obtains a Conversation object that represents the conversation to which this conversation header belongs.
GetConversation returns Null (Nothing in Visual Basic) if no conversation exists for the item. No conversation exists for an item in the following scenarios:
Dim chr As ConversationHeader: Set chr =
Dim cnvGetConversation As Conversation
Set cnvGetConversation = chr.GetConversation()
GetItems
Obtains a SimpleItems collection that contains all of the items in the conversation that reside in the same folder as the selected conversation header.
The SimpleItems collection only contains conversation items in the folder that contains the conversation header. The SimpleItems collection does not return cross-folder conversation items. If you must access cross-folder content, use the Conversation object. If no conversation items exist in the same folder as the conversation header, GetItems returns a SimpleItems collection with the SimpleItems.Count property equal to 0.
Dim chr As ConversationHeader: Set chr =
Dim sisGetItems As SimpleItems
Set sisGetItems = chr.GetItems()
Session
Returns the NameSpace object for the current session.
Returns Null (Nothing in Visual Basic) if there is no logged-on session. You can use the Session property and the GetNamespace method interchangeably to obtain the NameSpace object for the current session.