Setting Participants Status of Meeting using Aspose.Email for .NET 18.3

Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.Email for .NET 18.3. This release introduces the capability of setting the participant status of a meeting which was not supported earlier. It also brings several improvements to the API in terms of bug fixes. For a complete list of what is new and fixed, please visit the release notes information of API documentation.

Setting Participant Status for Meeting

This release of Aspose.Email API lets you set the participation status of attendees of a meeting. This lets you add the same information to output ICS file in the form of PARTSTAT property. Status can be set to accepted as well as declined as per user’s requirements. This is as demonstrated by the following code sample.

string location = "Room 5";
DateTime startDate = new DateTime(2011, 12, 10, 10, 12, 11),
         endDate = new DateTime(2012, 11, 13, 13, 11, 12);
MailAddress organizer = new MailAddress("aaa@amail.com", "Organizer");
MailAddressCollection attendees = new MailAddressCollection();
MailAddress attendee1 = new MailAddress("bbb@bmail.com", "First attendee");
MailAddress attendee2 = new MailAddress("ccc@cmail.com", "Second attendee");

attendee1.ParticipationStatus = ParticipationStatus.Accepted;
attendee2.ParticipationStatus = ParticipationStatus.Declined;
attendees.Add(attendee1);
attendees.Add(attendee2);

Appointment target = new Appointment(location, startDate, endDate, organizer, attendees);

API Resources

The following API resources can be of help to you in getting started with Aspose.Email API.