When procedure is interrupted, whether terminate the procedure quietly or throw an Exception. Default is false, that is, when IsInterruptionRequested is true, a CellsException with code Interrupted will be thrown.(Inherited from AbstractInterruptMonitor.)
// Called: InterruptMonitor monitor = new InterruptMonitor();[Test]publicvoidType_InterruptMonitor(){stringfilePath=Constants.PivotTableSourcePath+@"JAVA42341_";DateTimestart=DateTime.Now;Workbookworkbook=newWorkbook(filePath+"Mkw-50.xlsx");InterruptMonitormonitor=newInterruptMonitor();workbook.InterruptMonitor=monitor;try{Console.WriteLine("Now convert");monitor.Interrupt();workbook.Save(CreateFolder(filePath)+"out.pdf",SaveFormat.Pdf);Console.WriteLine("Converted in "+DateTime.Now.Subtract(start).Milliseconds+"ms");}catch(CellsExceptione){if(e.Code==ExceptionType.Interrupted){Console.WriteLine("The save thread interrupted in "+DateTime.Now.Subtract(start).Milliseconds+"ms");}else{throwe;}}}