Hi,

I am using .NET Calendar API 2.0

If I edit event & make location blank, then event location is not
updated. The old event location name remains there.

If I edit event with some other location name, then it is updated.

Here is code snippet:-

          EventQuery objEventQuery = new EventQuery(EventId);

          EventFeed objEventFeed =
objCalendarService.Query(objEventQuery);

         oEventEntry = (EventEntry) objEventFeed.Entries[0];

          oEventEntry.Title.Text = "Title";

           oEventEntry.Content.Content = "Content";

           oEventEntry.Times.Clear();

           oWhen = new When();

           oWhen.StartTime = StartTime;

           oWhen.EndTime = EndTime;

           oWhen.AllDay = AllDay;

           oEventEntry.Times.Add(oWhen);

           oEventEntry.Locations.Clear();

          oWhere = new Where();

          oWhere.ValueString = Location;

         oEventEntry.Locations.Add(oWhere);

         oEventEntry.Update();


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to