예외에 대한 취급 발생
Contents
[
Hide
Show
]예외를위한 취급 발생
Calendarexception 클래스에 노출 된 발생 속성은 예외를 위해 발생을 처리하는 데 사용됩니다. 이 경우에 사용 된 사건은 정수 데이터 유형을 지원합니다.
다음 코드 라인은 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);