C# 如何在outlook 2013的约会时间前24小时向与会者(而不是共享日历的所有者)发送约会提醒?

C# 如何在outlook 2013的约会时间前24小时向与会者(而不是共享日历的所有者)发送约会提醒?,c#,outlook,calendar,appointment,C#,Outlook,Calendar,Appointment,我正在用C#创建一个windows应用程序,用于为我的团队在共享日历中设置约会。我是日历的主人。我已经编写了将约会和提醒时间设置为会议前24小时的代码。但不是向与会者发送提醒,而是向我发送提醒。我正在为此使用Microsoft.Office.Interop.Outlook。以下是我使用的代码: Outlook.Application oApp = new Outlook.Application(); // Get the NameSpace and Logon information. Out

我正在用C#创建一个windows应用程序,用于为我的团队在共享日历中设置约会。我是日历的主人。我已经编写了将约会和提醒时间设置为会议前24小时的代码。但不是向与会者发送提醒,而是向我发送提醒。我正在为此使用Microsoft.Office.Interop.Outlook。以下是我使用的代码:

Outlook.Application oApp = new Outlook.Application();

// Get the NameSpace and Logon information.
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");

// Get the Calendar folder.
Outlook.Recipient rcip = oNS.CreateRecipient("abc@domain.com");
Outlook.MAPIFolder oSharedCal = oNS.GetSharedDefaultFolder(rcip, Outlook.OlDefaultFolders.olFolderCalendar);
Outlook.MAPIFolder oShiftCal = oSharedCal.Folders["Sample"];
// Get the Items (Appointments) collection from the Calendar folder.
Outlook.Items oItems = oSharedCal.Items;
Outlook.AppointmentItem oAppt = (Outlook.AppointmentItem)oItems.Add();

// Set Appointment properties.
oAppt.Subject = Subject;
oAppt.Start = start;
oAppt.End = end;
oAppt.RequiredAttendees = email;
oAppt.ReminderMinutesBeforeStart = 24 * 60; 
oAppt.ReminderSet = true;
oAppt.BusyStatus = Outlook.OlBusyStatus.olFree;

//Show the item to pause.
oAppt.Save();
oAppt.Send();

有人能帮我吗?

不能为与会者设置提醒,它们是为您在日历中创建的约会副本设置的。与会者可以在接受会议请求时为自己设置提醒。

对于有关该工具本身的问题,请仅使用[visual studio]标记。