I'm using C# to go through and get all of my appointments in my outlook calender and trying to figure out if I have any conflicts, but when I check Appointment.Conflicts.Count, it's always 0, even though I've added multiple appointments that occur at the same time.
Here's some example code:
var outlook = new Microsoft.Office.Interop.Outlook.Application();
var calendar = outlook.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
Outlook.AppointmentItem appointment;
foreach (Outlook.AppointmentItem item in calendar.Items)
{
if (item.Conflicts.Count > 0)
{
Console.WriteLine("Never gets hit");
}
}
How do I determine if an appointment in Outlook conflicts with another appointment programmatically in C#?