Class AbstractInterruptMonitor
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Giám sát yêu cầu ngắt trong tất cả các thao tác tốn thời gian.
public abstract class AbstractInterruptMonitor
Kế thừa
object ← AbstractInterruptMonitor
Kế thừa từ
InterruptMonitor, SystemTimeInterruptMonitor, ThreadInterruptMonitor
Thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Các hàm tạo
AbstractInterruptMonitor()
protected AbstractInterruptMonitor()
Thuộc tính
IsInterruptionRequested
Chỉ ra liệu có yêu cầu ngắt cho thao tác hiện tại hay không.
Nếu đúng, thao tác hiện tại sẽ bị ngắt.
Cần thực hiện kiểm tra nhanh và hiệu quả ở đây, nếu không có thể trở thành một nút thắt cổ chai khác cho quy trình.
public abstract bool IsInterruptionRequested { get; }
Giá trị thuộc tính
TerminateWithoutException
Khi quy trình bị ngắt, có nên kết thúc quy trình một cách yên lặng hay ném ra một ngoại lệ.
Mặc định là false, tức là khi Aspose.Cells.AbstractInterruptMonitor.IsInterruptionRequested là true,
một Aspose.Cells.CellsException với mã Aspose.Cells.ExceptionType.Interrupted sẽ được ném ra.
public virtual bool TerminateWithoutException { get; }