例外のための処理の発生
Contents
[
Hide
Show
]例外のための処理の発生
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);