다음을 통해 공유


AutoResolvedWinner Property

Returns a Boolean that determines if the item is a winner of an automatic conflict resolution. Read-only.

Note  A value of False does not necessarily indicate that the item is a loser of an automatic conflict resolution. The item should be in conflict with another item.

expression.AutoResolvedWinner

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

Remarks

If an item has its Conflicts.Count property greater than zero and if its AutoResolvedWinner property is True, it is a winner of an automatic conflict resolution. On the other hand, if the item is in conflict and has its AutoResolvedWinner property as False, it is a loser in an automatic conflict resolution.

Example

The following Microsoft Visual Basic for Applications (VBA) example used the AutoResolvedWinner property to determine if an item is a winner or loser in an automatic conflict resolution. To run this example, make sure an e-mail item is open in the active window.

Sub ConflictStatus()
 Dim myOlApp As New Outlook.Application
 Dim mail As Outlook.MailItem
 Set mail = myOlApp.ActiveInspector.CurrentItem
 If mail.Conflicts.Count > 0 Then
  If mail.AutoResolvedWinner = True Then
   MsgBox "This item is a winner in an automatic conflict resolution."
  Else
   MsgBox "This item is a loser in an automatic conflict resolution."
  End If
 Else
  MsgBox "This item is not in conflict with any item."
 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