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; }