Class AbstractInterruptMonitor
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.ExceptionType.Interrupted 的 Aspose.Cells.CellsException。
public virtual bool TerminateWithoutException { get; }