VB .NET VSTO 2008: AppointmentItem.IsConflict always returns False

  • Thread starter Thread starter mikeo
  • Start date Start date
M

mikeo

Hi,

Does anyone how (or if) AppointmentItem.IsConflict works in VSTO 2008 with
Outlook 2007?

I have some simple code that goes through the items in a RecurrencePattern
and displays a message for each item that has a conflict. I don't seem to be
able to get AppointmentItem.IsConflict to return True in any situation, even
those in which Outlook displays "Conflicts with another appointment on your
Calendar." at the top of the inspector window. Any suggestions/comments
would be appreciated.

I'm using VB .NET and VSTO 2008 for an Outlook 2007 Add-in.

Thanks,
mikeo
 
That's not what IsConflict is for. It tells you whether an item is in conflict because the same item has been edited by another user, not whether there is another appointment in the same time period.

For your scenario, you can use the Recipient.FreeBusy method if the Calendar is for an Exchange user. If not, search over a date range, as shown at http://www.outlookcode.com/article.aspx?id=30.
 
Thanks Sue!

I thought it might be something that silly :)

We are using Exchange, so I'll check into Recipient.FreeBusy and the
suggested article.

Thanks again,
Mike
 
Back
Top