Click or drag to resize

Cancelation Class

This class represents a possible cancelation of a running task.

Using the method Cancel, the running task can be cancelled. And with the property IsCanceled can be checked whether the task was canceled.

Inheritance Hierarchy
SystemObject
  Mastersign.BenchCancelation

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public class Cancelation

The Cancelation type exposes the following members.

Constructors
  NameDescription
Public methodCancelation
Initializes a new instance of the Cancelation class
Top
Properties
  NameDescription
Public propertyIsCanceled
Checks whether the related task is cancelled or not.
Top
Methods
  NameDescription
Public methodCancel
Requests the cancelation of the related task.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventCanceled
This event is fired, when the related task is cancelled.
Top
Remarks
This class is not thead safe.
See Also