[英]Display outlook appointment calendar
I have a C# app which creates an appointment (oAppoint) and moves it to a different calendar (an exchange one, not mine).我有一个 C# 应用程序,它创建一个约会 (oAppoint) 并将其移动到另一个日历(一个交换日历,不是我的)。 When I use the func() display()
, it displays the oAppoint object that is in my calendar.当我使用func() display()
,它会显示我日历中的 oAppoint 对象。 How do I display the appointment on the calendar I moved it to?如何在我移动到的日历上显示约会?
oAppoint.Move(newCalFolder);
oAppoint.Save();
oAppoint.Display(); // display the appointment item at the calendar I moved it to (? how ?)
The Move method will return an object referring to the item that was moved, so: Move 方法将返回一个指向被移动项目的对象,因此:
Outlook.AppointmentItem movedItem = (Outlook.AppointmentItem)oAppoint.Move(newCalFolder);
movedItem.Display();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.