Class AbstractInterruptMonitor

Class AbstractInterruptMonitor

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

מנטר בקשות הפסקה בכל פעולות שדורשות זמן רב.

public abstract class AbstractInterruptMonitor

ירושה

objectAbstractInterruptMonitor

נגזרות

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

מציין האם מתבקשת הפסקה עבור הפעולה הנוכחית.
אם נכון, אז הפעולה הנוכחית תופסק.
היישום צריך לבצע בדיקה מהירה ויעילה כאן, אחרת זה עלול להפוך לצוואר בקבוק נוסף עבור ההליך.

public abstract bool IsInterruptionRequested { get; }

ערך המאפיין

bool

TerminateWithoutException

כאשר ההליך מופרע, האם להפסיק את ההליך בשקט או לזרוק Exception.
ברירת המחדל היא false, כלומר, כאשר Aspose.Cells.AbstractInterruptMonitor.IsInterruptionRequested הוא true,
יושלך Aspose.Cells.CellsException עם קוד Aspose.Cells.ExceptionType.Interrupted.

public virtual bool TerminateWithoutException { get; }

ערך המאפיין

bool

 Ελληνικά