ContactItem 方法 (Outlook)ContactItem.GetConversation method (Outlook)

获取一个**对话** 对象, 该对象代表此项目所属的对话。Obtains a Conversation object that represents the conversation to which this item belongs.

语法Syntax

expressionexpression. GetConversation

_表达式_一个代表 "ContactItem" 对象的变量。expression A variable that represents a 'ContactItem' object.

返回值Return value

表示此项所属的对话的会话对象。A Conversation object that represents the conversation to which this item belongs.

说明Remarks

如果项目没有对应的会话,则 GetConversation 返回 Null(在 Visual Basic 中为 Nothing)。GetConversation returns Null (Nothing in Visual Basic) 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.

  • 已通过 Windows 注册表禁用会话。Conversations have been disabled through the Windows registry.

  • 存储不支持会话视图(例如,Outlook 正在针对早于 Microsoft Exchange Server 2010 的 Microsoft Exchange 版本在经典联机模式下运行)。The store does not support Conversation view (for example, Outlook is running in classic online mode against a version of Microsoft Exchange earlier than Microsoft Exchange Server 2010). 使用**store** 对象的**IsConversationEnabled** 属性可确定存储是否支持会话视图。Use the IsConversationEnabled property of the Store object to determine whether the store supports Conversation view.

另请参阅See also

创建 ContactItem 对象ContactItem Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.