Hello,
I am a newbie to GCalendar API...so pardon me if this is a silly
mistake. but on using the C# sample code from Google to access a (non-
default) calendar, I am able to list out the event titles, but the
date-times are missing. Could someone help?
Thanks much!
This is the snippet of code:
EventFeed calFeed = service.Query(query) as EventFeed;
//now populate the calendar
while (calFeed != null && calFeed.Entries.Count > 0)
{
//look for the one with dinner time...
foreach (EventEntry entry in calFeed.Entries)
{
this.entryList.Add(entry);
//This part works - I am able to list out the titles & creators
Console.WriteLine(entry.Title.Text);
//this part is empty and throws an exception
if (entry.Times.Count > 0)
{
foreach (When w in entry.Times)
{
dates.Add(w.StartTime);
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---