Je construis une application basée sur ce site http://msdn.microsoft.com/en-us/library/dd633661%28v=EXCHG.80%29.aspxC# créer un élément de calendrier avec EWS, comment récupérer les résultats?
appointment.Subject = "Status Meeting";
appointment.Body = "The purpose of this meeting is to discuss status.";
appointment.Start = new DateTime(2009, 3, 1, 9, 0, 0);
appointment.End = appointment.Start.AddHours(2);
appointment.Location = "Conf Room";
appointment.RequiredAttendees.Add("[email protected]");
appointment.RequiredAttendees.Add("[email protected]");
appointment.OptionalAttendees.Add("[email protected]");
appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);
comment je peux retourner les résultats XML "... < t: ItemId Id = "AAMkADk =" ChangeKey = "DwAAAB"/> ..." donc je peux l'utiliser plus tard pour supprimer ou modifier l'élément du calendrier!?!
Microsoft a fait un travail de dieu avec tout le cadre, mais ont-ils vraiment oublié cette petite chose?
J'ai trouvé une solution (non logique pour moi) http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx devrais-je utiliser ceci pour résoudre le problème?
acclamations
merci, donc c'est comme je le comprends un peu comment, alors que dois-je faire pour obtenir l'itemID et le ChangeKey? après avoir "enregistré" le rendez-vous. Enregistrer (SendInvitationsMode.SendToAllAndSaveCopy); ? –
Jetez un oeil à ce lien - http://blogs.msdn.com/b/exchangedev/archive/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange- web-services.aspx. Gardez à l'esprit que EWS est un "service Web" et que les résultats de la sollicitation du service sont sérialisés (c'est-à-dire en XML comme vous l'avez demandé). – bitxwise