例外のための処理の発生

例外のための処理の発生

Calendarexceptionクラスによって公開されるOccurrencesプロパティは、例外のために発生を処理するために使用されます。この場合に使用される発生は、整数データ型をサポートしています。

次のコード行は、例外を5年間有効にします。

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.