Filtrar Citas del Servidor Exchange
Contents
[
Hide
]
El IEWSClient proporciona la facilidad de filtrar citas del servidor Exchange utilizando el ExchangeQueryBuilder. Las citas se pueden filtrar en función de:
- Fechas
- Recurrencias
Filtrando Citas por Fechas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-C | |
System::SharedPtr<IEWSClient> client = GetExchangeEWSClient(GetExchangeTestUser()); | |
System::DateTime startTime(2017, 9, 15); | |
System::DateTime endTime(2017, 10, 10); | |
System::SharedPtr<ExchangeQueryBuilder> builder = System::MakeObject<ExchangeQueryBuilder>(); | |
builder->get_Appointment()->get_Start()->Since(startTime); | |
builder->get_Appointment()->get_End()->BeforeOrEqual(endTime); | |
System::SharedPtr<MailQuery> query = builder->GetQuery(); | |
System::ArrayPtr<System::SharedPtr<Appointment>> appointments = client->ListAppointments(query); |
Filtrando Citas por Eventos Recurridos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-C | |
builder = System::MakeObject<ExchangeQueryBuilder>(); | |
builder->get_Appointment()->get_IsRecurring()->Equals(false); | |
query = builder->GetQuery(); | |
appointments = client->ListAppointments(query); |