Can you file a bug here and make it clearer on what the problem is? Do  
you mean with "make location blank" that you are clearing the  
collection in Locations.Clear() or that the oWhere.ValueString is set  
to an empty string?

http://code.google.com/p/google-gdata/issues/list

Thanks

Frank Mantek
Google
On Jun 12, 2008, at 12:48 PM, manoj wrote:

>
> 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