Handling Occurrences for Exceptions
Contents
[
Hide
Show
]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);