Conflicts Collection

Multiple objects
Conflicts
Conflict

The Conflicts object is a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item.

Using the Conflicts Object

Use the Conflicts property to return the Conflicts object for any Outlook item object.

Use the Count property of the Conflicts object to determine if the item is invloved in a conflict. A non-zero value indicates conflict.

Use the Item method to retrieve a particular conflict item from the Conflicts collection object.

Use the GetFirst, GetNext, GetPrevious, and GetLast methods to traverse the Conflicts collection.

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 an e-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

Properties | Application Property | Class Property | Count Property | Parent Property | Session Property

Methods | GetFirst Method | GetLast Method | GetNext Method | GetPrevious Method | Item Method

Parent Objects | 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

Child Objects