_Conversation.GetRootItems Method

Returns a SimpleItems collection that contains all root items in the conversation.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetRootItems As SimpleItems
'Usage
Dim instance As _Conversation
Dim returnValue As SimpleItems

returnValue = instance.GetRootItems()
[DispIdAttribute()]
SimpleItems GetRootItems()

Return Value

Type: Microsoft.Office.Interop.Outlook.SimpleItems
A SimpleItems collection that includes the root item or all root items of the conversation.

Remarks

A conversation can have one or more root items. For example, if the root item of the conversation has three child items and the root item is permanently deleted, all three child items become root items.

If all items are deleted from the conversation after the T:Microsoft.Office.Interop.Outlook.Conversation object has been obtained, GetRootItems returns a SimpleItems collection with zero objects. In this case, the Count property of the SimpleItems collection returns 0.

See Also

Reference

_Conversation Interface

_Conversation Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get and Display Items in a Conversation