移行コードの一部であるEWSを使用してイベントを作成しようとしています。元のイベントの主催者を設定することはできませんが、ここではシナリオです。元のオーガナイザでEWSイベントを作成
- ユーザAがユーザBに移行されて
- ユーザAは、カレンダー30のイベントこれらの30のうち
- を有し、それは、Aは、ユーザAにより作成された参加者と10のイベントである20の招待イベントを有します(つまり、ユーザーAは主催者)
次のコードを使用して移行すると、すべてのイベントがユーザーAを主催者として作成されます。本物の問題です
予約予約=新規予約(exchangeSevice);
appointment.MimeContent = new MimeContent("UTF-8", System.IO.File.ReadAllBytes(@"c:\A\test.mime")); //appointment.MimeContent = ; // Set the properties on the appointment object to create the appointment. appointment.Subject = "Tennis lesson with invite 22222"; appointment.Body = "Focus on backhand this week."; appointment.Start = DateTime.Now.AddDays(2); appointment.End = appointment.Start.AddHours(1); appointment.Location = "Tennis club"; appointment.ReminderDueBy = DateTime.Now; Attendee attendee = new Attendee("[email protected]"); appointment.RequiredAttendees.Add(attendee); Mailbox mailbox = new Mailbox(); mailbox.Address = "[email protected]"; // Save the appointment to your calendar. appointment.Save(new FolderId(WellKnownFolderName.Calendar, mailbox), SendInvitationsMode.SendToAllAndSaveCopy); // Verify that the appointment was created by using the appointment's item ID. Item item = Item.Bind(exchangeSevice, appointment.Id, new PropertySet(ItemSchema.Subject));
問題は、Microsoftによって、ここで説明されています。
私はまさにこの段落が言おうとしているのかわからないのです。
MIMEを使用して会議を作成する場合は、MIME/VCALENDARコンテンツにREQUESTの代わりにMETHOD:PUBLISHを使用させます。この問題は、設定する必要がある他のプロパティがあることです。すべてのものを設定する必要があるか、方法論がすべての場合に機能するかについての文書や推奨事項はありません。さらに、今のところ確実に動作するかもしれませんが、将来のExchangeの更新では期待どおりに機能しない可能性があります。
他のオーガナイザでイベントを作成する要件をどのように達成できますか?私はそうする可能性はありますか?