Handling Occurrences for Exceptions

Handling Occurrences for Exceptions

The Occurrences property exposed by the CalendarException class are used to handle occurrences for an exception. Occurrences used in this case support the integer data type.

The following lines of code will make the exception valid for five years.

1// Define exception and specify occurences
2System::SharedPtr<CalendarException> except = System::MakeObject<CalendarException>();
3except->set_EnteredByOccurrences(true);
4except->set_Occurrences(5);
5except->set_Type(Aspose::Tasks::CalendarExceptionType::YearlyByDay);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.