We 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.
Filter Appointments using EWS Client using C#
The EWS client of the API already provides the capability of filtering messages from the Exchange server. This month’s release further enhances the functionality of searching items on the Exchange server. You can now filter appointments from Exchange server mailbox based on:
- Date and Time
The ExchangeQueryBuilder class is the user interface in this case. The following code samples show filtering appointments from the Exchange server using the 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);
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.
The following API resources can be of help to you in getting started with Aspose.Email API.