将会议室绑定到会议室

时间:2017-11-09 13:15:02

标签: c# exchangewebservices

在与EWS创建会议时,有没有办法绑定会议室?

现在我正在创建这样的会议:

var appointment = new Appointment(service)
{
    Subject = "Status Meeting",
    Body = "The purpose of this meeting is to discuss status.",
    Start = DateTime.Now.AddDays(2),
    End = DateTime.Now.AddDays(2).AddHours(2),
    RequiredAttendees = { "test@test.com" }
};
appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);

但我不能让它绑定到特定的房间(例如:myRoom@myOrg.onmicrosoft.com)。

谢谢

1 个答案:

答案 0 :(得分:1)

您需要将会议室添加为resource

appointment.Save代码之前添加以下代码。

appointment.Resources.Add("myRoom@myOrg.onmicrosoft.com");