【发布时间】:2020-07-29 21:18:23
【问题描述】:
在我的 .Net 测试应用程序中,我运行以下代码。新日历活动已成功创建,但它有关于该活动的 Hangout Meet 会议。如何禁用在活动中自动创建环聊会议?
我尝试设置 body.ConferenceData = null 但它没有任何效果。 在 Insert 方法之后使用 CalendarService.Events.Patch 方法也不起作用。
也无法通过使用 ConferenceSolution 类填充 body.ConferenceData 中的字段来分配现有会议 - 它完全被忽略并且会议总是创建新的。
Event body = new Event();
EventAttendee a = new EventAttendee();
a.Email = "test@test.de";
List<EventAttendee> attendes = new List<EventAttendee>();
attendes.Add(a);
body.Attendees = attendes;
EventDateTime start = new EventDateTime();
start.DateTime = Convert.ToDateTime("2020-04-14T09:00:00");
EventDateTime end = new EventDateTime();
end.DateTime = Convert.ToDateTime("2020-04-14T11:00:00");
body.Start = start;
body.End = end;
body.Location = "Room";
body.Summary = "test description";
Event newEvent = CalendarService.Events.Insert(body, MyCalendarID).Execute();
【问题讨论】:
-
我也无法避免创建它,也无法在之后删除它。我会对此进行调查,并将返回我的调查结果。
-
你找到解决办法了吗?
-
我找到了一个,但仅适用于 GSuite 帐户。这是你的情况吗?
-
是的,我们有 GSuite 帐户
标签: c# calendar hangout conference