2017-10-13 7 views
0

참가자가있는 약속은 약속 .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... 
    } 
} 

나는 약속에 추가 연락처 기능을 추가하려고했으나 헛된있다. 왜 그런 기괴한 행동에 대한 의견이 있으십니까?

답변

0

Invitees 속성에 액세스 할 때는 appointmentsSystem 기능이 필요합니다.

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" 
     xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" 
     xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" 
     xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" 
    IgnorableNamespaces="uap mp rescap"> 

<Capabilities> 
    <Capability Name="internetClient"/> 
    <uap:Capability Name="appointments" /> 
    <uap:Capability Name="contacts" /> 
    <rescap:Capability Name="appointmentsSystem" /> 
</Capabilities> 

아무도 매장 제출이 기능에 대한 액세스를 요청하지 않을 수

appointmentsSystem 스토어 앱에서 쓸모가 있습니다.

+0

이 제한 기능을 수동으로 매니페스트 파일에 추가하려고 시도했지만 차이점을 확인했습니다. 이것은 내가 지금 가지고있는 것입니다. <기능> <능력 NAME = "internetClient"/> sudarsanyes