我使用EventsResource.ListRequest
来获取日历事件。是请求,但是当我在Google日历上设置“不在办公室”或“提醒”时,则不请求。
如何解决此问题,或者应该在EventsResource.ListRequest
中添加哪个参数?
这是我关于EventsResource.ListRequest
的代码。
Public Function Fun_List(ByVal oService As CalendarService) As DataTable
Dim oRequest As EventsResource.ListRequest = oService.Events.List("primary")
oRequest.TimeMin = Now.ToString("yyyy-MM-dd'T'00:00:00.fffK")
oRequest.ShowDeleted = False
oRequest.SingleEvents = True
oRequest.OrderBy = EventsResource.ListRequest.OrderByEnum.StartTime
Dim oEvent As Events = oRequest.Execute()
Dim dt_Calender As DataTable = Fun_CreatTable("Calendar")
'BUILD DataTable
Return dt_Calender
“不在办公室”和“提醒”就像这张图片。