Reputation: 627
Is there a way to bind a meeting room when creating a meeting with EWS ?
Right now I am creating the meeting like this :
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 = { "[email protected]" }
};
appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);
But I cannot make it to bind to a specific room (Ex: [email protected]
).
Thank you
Upvotes: 1
Views: 123
Reputation: 1150
You need to add the meeting room as a resource.
Add the code below just before your appointment.Save
code.
appointment.Resources.Add("[email protected]");
Upvotes: 1