Outlook) (冲突对象

包含 Conflict 对象的集合,这些对象代表与某个特定的 Outlook 项目相冲突的所有 Microsoft Outlook 项目。

备注

使用的任何 Outlook 项目,如 MailItem , 冲突 属性返回 冲突 对象。

使用 Conflicts 对象的 Count 属性确定项是否涉及冲突。 非零值表示有冲突。

使用 Item 方法来检索特定冲突项 冲突 集合对象。

使用 GetFirst 、 GetNext 、 变量 和 进入 方法 冲突 集合进行遍历。

示例

下面的 Microsoft Visual Basic for Applications (VBA) 示例使用 冲突 对象的 Count 属性以确定该项目所涉及的任何冲突。 若要运行此示例,请确保电子邮件项目在活动窗口中打开。

Sub CheckConflicts() 
 
 Dim myItem As Outlook.MailItem 
 
 Dim myConflicts As Outlook.Conflicts 
 
 
 
 Set myItem = Application.ActiveInspector.CurrentItem 
 
 Set myConflicts = myItem.Conflicts 
 
 If (myConflicts.Count > 0) Then 
 
 MsgBox ("This item is involved in a conflict.") 
 
 Else 
 
 MsgBox ("This item is not involved in any conflicts.") 
 
 End If 
 
End Sub

方法

名称
GetFirst
GetLast
GetNext
GetPrevious
项

属性

名称
Application
类
Count
Parent
Session

另请参阅

Outlook 对象模型引用

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。