Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 显示outlook约会日历_C#_Outlook_Calendar_Appointment - Fatal编程技术网

C# 显示outlook约会日历

C# 显示outlook约会日历,c#,outlook,calendar,appointment,C#,Outlook,Calendar,Appointment,我有一个C#应用程序,可以创建约会(oAppoint)并将其移动到不同的日历(exchange日历,不是我的)。当我使用func()display()时,它会显示日历中的oAppoint对象。如何在我将约会移动到的日历上显示约会 oAppoint.Move(newCalFolder); oAppoint.Save(); oAppoint.Display(); // display the appointment item at the calendar I moved it to (? how

我有一个C#应用程序,可以创建约会(oAppoint)并将其移动到不同的日历(exchange日历,不是我的)。当我使用
func()display()
时,它会显示日历中的oAppoint对象。如何在我将约会移动到的日历上显示约会

oAppoint.Move(newCalFolder);
oAppoint.Save();
oAppoint.Display(); // display the appointment item at the calendar I moved it to (? how ?)

Move方法将返回一个引用已移动项的对象,因此:

Outlook.AppointmentItem movedItem = (Outlook.AppointmentItem)oAppoint.Move(newCalFolder);
movedItem.Display();