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

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
 
S

Sue Mosher [MVP-Outlook]

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.
 
M

mikeo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top