我正在從約會,從我們的應用程序到Exchange的任務同步,並返回。EWS在過去的通知中創建約會
EWS是表示日曆上的資源預約(需要參加者,可選與會者)只有當SendInvitationsMode枚舉如任一SendInvitationsMode.SendToAllAndSaveCopy
或SendInvitationsMode.SendOnlyToAll
通過。
如果我們設置SendInvitationsMode枚舉到SendInvitationsMode. SendToNone
然後它只保存約會在管理器日曆上。
示例代碼
Appointment meeting1 = new Appointment(service);
ImpersonatedUserId impersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "organizer email");
service.ImpersonatedUserId = impersonatedUserId;
meeting1.Subject = "Checking responses";
meeting1.Body = "The purpose of this meeting is to check status.";
meeting1.Start = new DateTime(2017, 4,14, 12, 0, 0);
meeting1.End = meeting1.Start.AddHours(2);
meeting1.Location = "Conf Room";
Attendee attendee = new Attendee();
attendee.Address = "attendee email address";
attendee.Name = "name";
meeting1.RequiredAttendees.Add(attendee);
meeting1.Save(SendInvitationsMode.SendToNone);
是否有插入預約,所有與會者可以在電子郵件通知其各自的日曆明白的方式?發送過去約會的通知沒有任何意義。