如何在结束约会日期之前添加提醒?

时间:2016-12-16 12:15:44

标签: outlook uwp windows-10-universal appointment

我需要在结束日期之前添加关于约会的提醒,而不是开始日期。

此约会的创建

private async void AddFavoriteTenderEndDateToCalendar(MyEvent event)
    {
            var appointment = new Appointment();

            appointment.StartTime = new DateTimeOffset(event.StartDate);

            appointment.Duration = event.EndDate - event.StartDate;

            appointment.Subject = "blahblah";

            appointment.Reminder = TimeSpan.FromDays(1);

            var appointmentId = await AppointmentManager.ShowEditNewAppointmentAsync(appointment);           
    }

约会没有属性EndTime,而是我计算持续时间appointment.Duration = event.EndDate - event.StartDate;

如何在event.EndDate之前添加提醒?

0 个答案:

没有答案