Partager via


Conflicts Property

Return the Conflicts object that represents the items that are in conflict for any Microsoft Outlook item object. Read-only.

expression.Conflicts

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following Microsoft Visual Basic for Applications (VBA) example uses the Count property of the Conflicts object to determine if the item is involved in any conflict. To run this example, make sure a mail item is open in the active window.

Sub CheckConflicts()
 Dim myOlApp As Outlook.Application
 Dim myItem As Outlook.MailItem
 Dim myConflicts As Outlook.Conflicts
 Set myOlApp = CreateObject("Outlook.Application")
 Set myItem = myOlApp.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

Applies to | AppointmentItem Object | ContactItem Object | DistListItem Object | DocumentItem Object | JournalItem Object | MailItem Object | MeetingItem Object | NoteItem Object | PostItem Object | RemoteItem Object | ReportItem Object | TaskItem Object | TaskRequestAcceptItem Object | TaskRequestDeclineItem Object | TaskRequestItem Object | TaskRequestUpdateItem Object