有参与者的约会,在查询使用约会.Invitees 属性时总是返回一个空集合。
这是我想要做的,
var calendarStore = await AppointmentManager.RequestStoreAsync(AppointmentStoreAccessType.AllCalendarsReadOnly);
var appointments = await calendarStore.FindAppointmentsAsync(DateTimeOffset.Now, TimeSpan.FromDays(30), new FindAppointmentsOptions() { IncludeHidden = true });
foreach (var appointment in appointments)
{
// appointment.Invitees is always null, even for appointments that has some!
foreach (var invitee in appointment.Invitees)
{
// do something here...
}
}
除了约会之外,我还尝试添加联系人功能,但徒劳无功。有什么想法为什么会出现这种奇怪的行为?