0
具有參與者的約會,在查詢使用appointment.Invitees屬性時總是返回空集合。Appointment.Invitees在UWP AppointmentManager中始終爲空
這裏就是我試圖做的,
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...
}
}
我嘗試添加除預約聯繫人功能,但不成功。 有關爲什麼會出現這種奇怪行爲的想法?
我試圖手動添加這個受限能力到清單文件,但我看到有所作爲。這是我現在擁有的。 <能力> <能力名稱= 「internetClient」/> Capabilities> –
sudarsanyes