0

我有一个程序从 Microsoft Exchange 获取给定日历的约会,我想在 ASP.net 文件中输出这些约会

我拥有的“背后代码”是:

DateTime StartDate = DateTime.Today;
        DateTime EndDate = DateTime.Today.AddDays(1);
        CalendarView cv = new CalendarView(StartDate, EndDate);
        String MailboxToAccess = "RES_03037@company.com";
        FolderId CalendarFolderId = new FolderId(WellKnownFolderName.Calendar, MailboxToAccess);
        FindItemsResults<Appointment> fapts = service.FindAppointments(CalendarFolderId, cv);
        if (fapts.Items.Count > 0)
        {
            DataRow row = table2.NewRow();

            foreach (Appointment Appoint in fapts)
            {
                //Output to ASPX file

            }
        }

我对 ASP 和 C# 还很陌生

您的建议将不胜感激!

4

0 回答 0