C# 在google日历中查找全天活动的日期

C# 在google日历中查找全天活动的日期,c#,C#,我有一个小的C#程序来读取我的谷歌日历并返回事件 public static IEnumerable<EventEntry> GetAllEvents(CalendarService service, DateTime? startData, DateTime? endData, int nbrToGet) { EventQuery query = new EventQuery(); // Create the query obj

我有一个小的C#程序来读取我的谷歌日历并返回事件

public static IEnumerable<EventEntry> GetAllEvents(CalendarService service, DateTime? startData, DateTime? endData, int nbrToGet)
        {
            EventQuery query = new EventQuery();        // Create the query object:

            if (startData != null)
            {
                query.StartTime = startData.Value;
            }

            if (endData != null)
            {
                query.EndTime = endData.Value;
            }

            query.SortOrder = CalendarSortOrder.ascending;

            query.Uri = new Uri("https://www.google.com/calendar/feeds/" + service.Credentials.Username + "/private/full" + "?max-results=" + nbrToGet.ToString());

            EventFeed calFeed = service.Query(query);       // Tell the service to query:

            return calFeed.Entries.Cast<EventEntry>();
        } 

在全天活动中,没有开始时间或结束时间。有没有办法找到与事件相关的日期?

泰晤士报集合中应该有一些内容,不是吗?它没有开始/结束时间;但是里面应该有一些全天挂着国旗的东西,不是吗?谢谢,没错。我在Recurrence.Value中找到它,我只需要从字符串中取出它
foreach (var q in myevents)
            {
                var one = q.Title.Text;
                var two = q.Times.ToList();

                if (two.Count > 0)
                {
                    a1 = two[0].StartTime.ToString();
                    a2 = two[0].EndTime.ToString();
                }
                else
                {
                    a1 = string.Empty;
                    a2 = string.Empty;
                }

                var three = q.Content.Content;

                test.Add(new MyCalendarData { Title = one, StartTime = a1, EndTime = a2, Content = three });
            }