Filtering Appointments using EWS with Aspose.Email for .NET 17.10

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

aspose-email-for-.NETWe are pleased to announce the release of Aspose.Email for .NET 17.10. This release includes enhancement for filtering appointments from Exchange server using Exchange Web Service (EWS) client of the API. It also includes improvements in terms of bug fixes which further add to the overall functionality of the API. For a detailed note on what is new and fixed, please visit the release notes section of API documentation.

Enhancements in Aspose.Email for .NET 17.10

Filtering Appointments using EWS Client: The EWS client of the API already provides the capability of filtering messages from Exchange server. This month’s release further enhances the functionality of searching items on Exchange server. You can now filter appointments from Exchange server mailbox based on:

  • Date and Time
  • Recurrence

The ExchangeQueryBuilder class is the user interface in this case. The following code samples show filtering appointments from Exchange server using IEWSClient of the API.

Filtering Appointments by Date Time

IEWSClient client = EWSClient.GetEWSClient(mailboxUri, username, password, domain);
DateTime startTime = new DateTime(2017,09, 15);
DateTime endTime = new DateTime(2017, 10, 10);
ExchangeQueryBuilder builder = new ExchangeQueryBuilder();
builder.Appointment.Start.Since(startTime);
builder.Appointment.End.BeforeOrEqual(endTime);
MailQuery query = builder.GetQuery();
Appointment[] appointments = client.ListAppointments(query);

Filtering Appointments by Recurrence

builder = new ExchangeQueryBuilder();
builder.Appointment.IsRecurring.Equals(false);
query = builder.GetQuery();
appointments = client.ListAppointments(query);

Other Improvements

In addition to enhancement mentioned above, this month’s release also includes several bug fixes that add to the overall stability of the API in terms of expected output. Details about the fixed issues can be found in the release notes section of the API.

API Resources

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


To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply