Calendar 仅列出私人日历-谷歌v3

Calendar 仅列出私人日历-谷歌v3,calendar,google-calendar-api,Calendar,Google Calendar Api,这将为我提供v3中的日历列表: '获取日历列表 Dim oList作为IListOf CalendarListEntry=m_Service.CalendarList.List.Execute.Items 但它给中小企业提供了一个所有日历的列表,甚至谷歌的日历,如假日或生日 Dim oList As IList(Of CalendarListEntry) = m_Service.CalendarList.List().Execute().Items() For Each oCalendarEnt

这将为我提供v3中的日历列表:

'获取日历列表 Dim oList作为IListOf CalendarListEntry=m_Service.CalendarList.List.Execute.Items

但它给中小企业提供了一个所有日历的列表,甚至谷歌的日历,如假日或生日

Dim oList As IList(Of CalendarListEntry) = m_Service.CalendarList.List().Execute().Items() For Each oCalendarEntry As Data.CalendarListEntry In oList
If (oCalendarEntry.AccessRole = "owner") Then
    ' Continue
在v2中,我可以这样做,只获取用户日历列表:

CalendarQuery查询=新建CalendarQuery; Uri=新的Uri; CalendarFeed resultFeed=CalendarFeedm_Service.Queryquery

我不知道如何使用v3实现这一点


Andrew

在CalendarList:list中,添加minAccessRole=owner,它只列出作为日历所有者的用户的私有日历。它不会在谷歌上显示假日或生日之类的信息。

您好。谢谢你的建议。我不知道该怎么做。但我管理的是:Dim oList As IListOf CalendarListEntry=m_Service.CalendarList.List.Execute.Items For Each oCalendarEntry As Data.CalendarListEntry In oList If oCalendarEntry.AccessRole=owner Then
Dim oList As IList(Of CalendarListEntry) = m_Service.CalendarList.List().Execute().Items() For Each oCalendarEntry As Data.CalendarListEntry In oList
If (oCalendarEntry.AccessRole = "owner") Then
    ' Continue