Class AbstractInterruptMonitor
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Мониторинг запросов на прерывание во всех длительных операциях.
public abstract class AbstractInterruptMonitor
Наследование
object ← AbstractInterruptMonitor
Производные
InterruptMonitor, SystemTimeInterruptMonitor, ThreadInterruptMonitor
Унаследованные члены
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Конструкторы
AbstractInterruptMonitor()
protected AbstractInterruptMonitor()
Свойства
IsInterruptionRequested
Указывает, запрашивается ли прерывание для текущей операции.
Если true, то текущая операция будет прервана.
Реализация должна выполнять быструю и эффективную проверку здесь, в противном случае это может стать еще одной узкой местью для процедуры.
public abstract bool IsInterruptionRequested { get; }
Значение свойства
TerminateWithoutException
Когда процедура прервана, следует ли тихо завершить процедуру или выбросить исключение.
По умолчанию false, то есть, когда Aspose.Cells.AbstractInterruptMonitor.IsInterruptionRequested равно true,
будет выброшено исключение Aspose.Cells.CellsException с кодом Aspose.Cells.ExceptionType.Interrupted.
public virtual bool TerminateWithoutException { get; }