Partager via


_Conversation.GetParent Method

Returns the parent item of the specified node in the conversation.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetParent ( _
    Item As Object _
) As Object
'Usage
Dim instance As _Conversation
Dim Item As Object
Dim returnValue As Object

returnValue = instance.GetParent(Item)
[DispIdAttribute()]
Object GetParent(
    Object Item
)

Parameters

  • Item
    Type: System.Object

    A conversation node that is part of a conversation.

Return Value

Type: System.Object
An Object (object in C#) that represents the parent conversation item of the node specified by the Item parameter.

Remarks

If the node specified by the Item parameter does not exist in the conversation, the GetParent method returns an error.

If the node specified by the Item parameter does not have a parent item in the conversation, the GetParent method returns Nothing (a null reference (Nothing in Visual Basic) in C#).

See Also

Reference

_Conversation Interface

_Conversation Members

Microsoft.Office.Interop.Outlook Namespace